From 98aa4918385d5df1012ce100deb7c85198122454 Mon Sep 17 00:00:00 2001 From: Tom Ryder Date: Fri, 7 Nov 2014 13:43:54 +1300 Subject: 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. --- vim/vimrc | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'vim/vimrc') 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') -- cgit v1.2.3