From: Simon Ruderich Date: Tue, 22 Nov 2011 14:39:40 +0000 (+0100) Subject: vimrc: Wrap all plugin settings in one if has('eval'). X-Git-Url: https://ruderich.org/simon/gitweb/?p=config%2Fdotfiles.git;a=commitdiff_plain;h=86818cd627d124febb40ae8f144fd15baa92e30a vimrc: Wrap all plugin settings in one if has('eval'). --- diff --git a/vimrc b/vimrc index 04cae91..6fc405b 100644 --- a/vimrc +++ b/vimrc @@ -386,23 +386,21 @@ endif " PLUGIN SETTINGS +if has('eval') " 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') && v:version >= 700 - execute 'call pathogen#runtime_append_all_bundles()' -endif + if v:version >= 700 + execute 'call pathogen#runtime_append_all_bundles()' + endif " Settings for the NERD commenter. " Don't create any mappings I don't want to use. -if has('eval') let NERDCreateDefaultMappings = 0 -endif " Map toggle comment. -map NERDCommenterToggle + map NERDCommenterToggle " XPTemplate settings. -if has('eval') " Try to maintain snippet rendering even after editing outside of a " snippet. let g:xptemplate_strict = 0