Sane Vim Plugin Management with Vundle(charlietanksley.net) |
Sane Vim Plugin Management with Vundle(charlietanksley.net) |
To update submodules do (in the "main dir" of the git repo):
git submodule foreach git pullQuestion: is there an equally easy way to delete submodules? They're easy as pie to add, and you rightly point out that they are easy to update, but I never figured out an easy way to remove them. I was likely missing something, though.
https://github.com/vim-scripts
mirrors all plugins hosted on vim.org as clonable repos.1. add a repo:
$ git remote add remote-vim-surround https://github.com/tpope/vim-surround.git
2. git-subtree: $ git subtree add --prefix=vim/bundle/vim-surround remote-vim-surround master
3. occasional updates: $ git subtree pull --prefix=vim/bundle/vim-surround remote-vim-surround master
The advantage of this method is that I can keep my config directory in git, pull it onto a new machine, and not have to update any submodules. It's just all there.How well does Vundle work in Windows? And how does it organize the plugins?
Dir.glob("#{ENV['HOME']}/.vimbundles/*").each do |d|
next unless File.directory?(d)
puts "updating #{d}"
`cd #{d}; git pull --rebase; cd -`
end
in ruby, would be easy enough in bash/zsh/python/perl/ as well.see also: https://github.com/hashrocket/dotmatrix/blob/master/bin/vimb...
Is submodule-based package management gone for good? I'm going to wait and see.
One thing is clear: the author understands the current Vim ecosystem and knows exactly what pain points still exist. He doesn't diminish how great Pathogen is but has come up with a way to make package management seamless, and for that reason, I'm going to give this a try.
For example to add the rails plugin I can do:
braid add git://github.com/tpope/vim-rails.git bundle/vim-rails
then I can do `braid update bundle/vim-rails` to update just that or `braid update` to update allYou can get past the "Javascript required" message by disabling CSS (e.g. Web Developer Toolbar extension).