" Don't highlight more than 500 columns as I normally don't have that long
" lines and they slow down syntax coloring. Thanks to Derek Wyatt
" (http://www.derekwyatt.org/vim/the-vimrc-file/).
- set synmaxcol=500
+ if exists('+synmaxcol')
+ set synmaxcol=500
+ endif
" Highlight lines longer than 78 characters. Thanks to Tony Mechelynck
" <antoine.mechelynck@gmail.com> from the Vim mailing list. It can easily be
" Use pathogen which allows one 'runtimepath' entry per plugin. This makes
" installing/removing/updating plugins simple. (Used for plugins with more
" than one file.)
-if has('eval')
- call pathogen#runtime_append_all_bundles()
+if has('eval') && v:version >= 700
+ execute 'call pathogen#runtime_append_all_bundles()'
endif
" Settings for the NERD commenter.
" Automatically disable 'paste' mode when leaving insert mode. Thanks to
" Raimondi in #vim on Freenode (2010-08-14 23:01 CEST). Very useful as I only
" want to paste once and then 'paste' gets automatically unset.
- autocmd InsertLeave * set nopaste
+ if exists('#InsertLeave')
+ autocmd InsertLeave * set nopaste
+ endif
" AFTER/FTPLUGIN AUTO COMMANDS