aboutsummaryrefslogtreecommitdiff
path: root/vim/vimrc
diff options
context:
space:
mode:
authorTom Ryder <tom@sanctum.geek.nz>2014-11-07 13:43:54 +1300
committerTom Ryder <tom@sanctum.geek.nz>2014-11-07 13:43:54 +1300
commit98aa4918385d5df1012ce100deb7c85198122454 (patch)
tree07d6dfc6a0a5cc69d92e0e015a3715f08d4c514a /vim/vimrc
parentNo reason for capital X on Xmodmap (diff)
downloaddotfiles-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/vimrc')
-rw-r--r--vim/vimrc10
1 files changed, 6 insertions, 4 deletions
diff --git a/vim/vimrc b/vim/vimrc
index a66934ef..5e5356bf 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -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')