Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I was looking for some syntax highlighting goodness for handlebars in vim and the installation instructions say to do this...

cd ~/.vim/
git submodule add git://github.com/nono/vim-handlebars.git bundle/handlebars

What is the purpose of this and how does it differ form just cloning the repository in the bundle directory.

share|improve this question

1 Answer 1

up vote 1 down vote accepted
  • Putting one's ~/.vim under version control is trendy.

  • Using Git for that is trendy.

  • git clone … is a convenient, and trendy, way to install a plugin but…

  • cloning another Git repo inside of a Git repo can become messy.

  • Git submodules allow you to do just that, in a less messy manner.

  • And they are trendy.

This Q/A explains submodules briefly and this page of the Git book gives you more bang for your bucks.

share|improve this answer
    
hahah... so I get to be like 2% more hipster now? –  Derek Adair Jul 30 '12 at 3:46
    
With a plugin called "handlebars" your hipsterness bumps by 10 % at least. But I prefered them when they were underground. –  romainl Jul 30 '12 at 5:54

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.