Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
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

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .