Last Updated: September 14, 2018
·
11.75K
· jan0sch

Update your vim pathogen plugins.

Because I don't have my whole .vim directory under version control I usually do something like this to update my bundles.

cd ~/.vim/bundle
for i in `ls`; do
  cd "$i"
  git pull
  cd ..
done

9 Responses
Add your response

you can also use the command

git submodule foreach git pull origin master
over 1 year ago ·

@telemachus I know of the ls pitfalls but in that case it seems okay because the directory names are usually sane. ;-)

over 1 year ago ·

@rkrdo But that does only work if you have your whole directory under git control which is not the case here.

over 1 year ago ·

@jan0sch true, that command is when you use submodules :p

over 1 year ago ·

Thanks man! Updating my vim plugins was always so tedious!

over 1 year ago ·
over 1 year ago ·

for i in ~/.vim/bundle/*; do git -C $i pull; done

over 1 year ago ·

@frankbe Very nice one. :-)

over 1 year ago ·

do NOT parse output of ls, that's what globs are for. http://mywiki.wooledge.org/BashPitfalls#for_i_in_.24.28ls_.2A.mp3.29

over 1 year ago ·