diff options
author | Tom Ryder <tom@sanctum.geek.nz> | 2014-11-07 13:43:54 +1300 |
---|---|---|
committer | Tom Ryder <tom@sanctum.geek.nz> | 2014-11-07 13:43:54 +1300 |
commit | 98aa4918385d5df1012ce100deb7c85198122454 (patch) | |
tree | 07d6dfc6a0a5cc69d92e0e015a3715f08d4c514a /vim | |
parent | No reason for capital X on Xmodmap (diff) | |
download | dotfiles-98aa4918385d5df1012ce100deb7c85198122454.tar.gz dotfiles-98aa4918385d5df1012ce100deb7c85198122454.zip |
Don't use Pathogen if Vim is ancient
At least on Debian's stock Vim on really old machines, loading Pathogen
causes a segfault that leaves Vim looping forever.
Diffstat (limited to 'vim')
-rw-r--r-- | vim/vimrc | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,10 +1,12 @@ " Don't make any effort to be compatible with vi, use more sensible settings set nocompatible -" If Pathogen is available, call it to load all the plugins in .vim/bundle; -" these are saved as submodules -silent! call pathogen#infect() -silent! call pathogen#helptags() +" If our version isn't ancient and Pathogen is available, call it to load all +" the plugins in .vim/bundle; these are saved as submodules +if v:version >= 701 + silent! call pathogen#infect() + silent! call pathogen#helptags() +endif " Load plugins and indentation for file types if has('autocmd') |