News for hackers. Stuff that matters.
Re:Sane Vim Plugin Management with Vundle by redacted on Wednesday May 11, 2011 @10:45AM (#2536613)
Not arguing with his main points, but updating submodules for pathogen is easier than he says.

To update submodules do (in the "main dir" of the git repo):

   git submodule foreach git pull
Re:Sane Vim Plugin Management with Vundle by ctanksley on Wednesday May 11, 2011 @01:06PM (#2537216)
Post author here. You're dead on about this. I could try to turn this into another reason why git + pathogen is lacking as a plugin management system (you have to know a lot about git!), but that is weak, so a better tack is to just agree.

Question: 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.

Re:Sane Vim Plugin Management with Vundle by mattyb on Wednesday May 11, 2011 @04:13PM (#2538218)
Re:Sane Vim Plugin Management with Vundle by john2x on Wednesday May 11, 2011 @12:42PM (#2537114)
That assumes that all the plugins are installed via Git, right?
Re:Sane Vim Plugin Management with Vundle by redacted on Wednesday May 11, 2011 @12:48PM (#2537143)
It updates only those plugins that are installed as git submodules yes. Most recent bundles have git repos, but if they don't

    https://github.com/vim-scripts
mirrors all plugins hosted on vim.org as clonable repos.
Re:Sane Vim Plugin Management with Vundle by nolite on Wednesday May 11, 2011 @01:06PM (#2537215)
did not know about this... this is official awesome
Re:Sane Vim Plugin Management with Vundle by Adaptive on Wednesday May 11, 2011 @03:29PM (#2537998)
I truly prefer to use git-subtree with pathogen.

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.
Re:Sane Vim Plugin Management with Vundle by john2x on Wednesday May 11, 2011 @09:37AM (#2536351)
Interesting. I just recently started using Pathogen, and it is a great improvement, but I do agree that updating plugins is still a chore.

How well does Vundle work in Windows? And how does it organize the plugins?

Re:Sane Vim Plugin Management with Vundle by ctanksley on Wednesday May 11, 2011 @01:08PM (#2537226)
The plugin author discusses that here: https://github.com/gmarik/vundle/wiki/Vundle-for-Windows.
Re:Sane Vim Plugin Management with Vundle by rbxbx on Wednesday May 11, 2011 @10:21AM (#2536528)
Updating your plugins (when using pathogen) is super-easy if they're stored in git somewhere.

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

Re:Sane Vim Plugin Management with Vundle by djacobs on Wednesday May 11, 2011 @10:46AM (#2536615)
It baffles me how underdeveloped the git-submodule command is. I've never enjoyed that aspect of Vim bundle management, and this looks like a refreshing alternative.

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.

Re:Sane Vim Plugin Management with Vundle by Vitaly on Thursday May 12, 2011 @07:21AM (#2540158)
I'm using pathogen with 'braid' to manage git based bundles.

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 all
Re:Sane Vim Plugin Management with Vundle by zzzmarcus on Wednesday May 11, 2011 @02:46PM (#2537764)
I've been using (and loving) vim-update-bundles for about 5 months now. I'm not sure how the two compare in terms of features, but the core functionality is the same.

https://github.com/bronson/vim-update-bundles

Re:Sane Vim Plugin Management with Vundle by Fooman on Wednesday May 11, 2011 @12:12PM (#2536995)
I switched to using Vundle this morning (before seeing the article). It is an excellent way to manage VIM plugins.
Re:Sane Vim Plugin Management with Vundle by pasbesoin on Wednesday May 11, 2011 @10:44AM (#2536611)
...There is a grow­ing con­sen­sus about Vim users that Pathogen is the best way to man­age scripts. The idea behind pathogen is a fan­tas­tic one (to be hon­est, all of Tim Pope’s scripts are well-thought out and exe­cuted; pathogen being no exception)...

You can get past the "Javascript required" message by disabling CSS (e.g. Web Developer Toolbar extension).