Skip to content

Instantly share code, notes, and snippets.

@bronson
Created July 9, 2011 02:57
Show Gist options
  • Save bronson/1073254 to your computer and use it in GitHub Desktop.
Save bronson/1073254 to your computer and use it in GitHub Desktop.
difference between Pathogen and Vundle?
set nocompatible
filetype off
set rtp+=~/.vim/bundle/vundle/
call vundle#rc()
" enabling this fixes things:
"call pathogen#runtime_append_all_bundles()
filetype indent plugin on
syntax on
set laststatus=2 " always display status line even if only one window is visible.
Bundle 'https://github.com/gmarik/vundle'
Bundle 'https://github.com/tpope/vim-fugitive'
" TODO: this prompt seems to cause huge delays with big repos on MacOS X
set statusline=%<%f\ %h%m%r%{fugitive#statusline()}%=%-14.(%l,%c%V%)\ %P
@bronson
Copy link
Author

bronson commented Jul 11, 2011

OH, I see. Your explanation makes sense now. Vundle is adding .vim/bundle/vimfugitive to the rtp but vim-update-bundles cloned it into 'fugitive'

We're both modifying the repo name, https://github.com/tpope/vim-fugitive: you're calling it vimfugitive, I'm changing it to just plain fugitive.

Pretty obvious in retrospect.

So hm... How do you want to handle repo name munging?

@bronson
Copy link
Author

bronson commented Jul 11, 2011

For the record, I just drop leading 'vim-' and trailing '.git':

dirname = url.split('/').last.gsub(/^vim-|\.git$/, '')

@gmarik
Copy link

gmarik commented Jul 11, 2011

ok, that makes sense now.
Yeah, Vundle just strips out .git ext but leaving the vim- part.
Not sure how should we handle vim-. And I agree that it's a useless prefix.

How is it possible that your rtp has bundle/vimfugitive without dash in name?

@bronson
Copy link
Author

bronson commented Jul 12, 2011

I'm thinking I'll change v-u-b to match vundle. I just added it because I noticed tpope and a few others using it to identify their plugins on github. But it's not necessary and simpler is better.

bundle/vimfugitive must have been a copy/paste error. It's vim-fugitive right now (although I'm using a very different environment).

Pathogen's rtp has 56 entries, Vundle's equivalent has 101. It would be nice if Vundle didn't add paths that don't exist. :)

@gmarik
Copy link

gmarik commented Jul 12, 2011

It would be nice if Vundle didn't add paths that don't exist.

Yeah, good catch! )

@bronson
Copy link
Author

bronson commented Jul 12, 2011

Yep, not dropping the vim- fixed it. Things seem to work, thanks!

Still trying to figure out how I feel about basing the rtp on the .vimrc instead of ~/.vim/bundle... Seems like more to go wrong, less flexible, but maybe it's nicer to have removals take place immediately. Can't tell. :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment