dottru / vim

Dotfiles for my vim installation
0 stars 0 forks source link

Write AddBundle command. #9

Open jmkogut opened 10 years ago

jmkogut commented 10 years ago

It will edit ~/.vim/bundles.vim and do the following:

GG?^Bundle<cr>Vypci'<Esc>"bp:w<cr>

Which copies the last uncommented line, pastes it below, and execs "change inner [singlequote]" at which point it pastes the string you supplied from the buffer labeled "b" then writes out our changes.

On bufwrite of this bundle file, run SetModified which just touches ~/.vim/MODIFIED. Then quit, so setup will run on next load.