From: Simon Ruderich Date: Sun, 21 Mar 2010 00:54:35 +0000 (+0100) Subject: vimrc: Don't reset 'runtimepath'. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=550fbc99ccb3214cee3e80e82e011c04ae565b1c;p=config%2Fdotfiles.git vimrc: Don't reset 'runtimepath'. --- diff --git a/vimrc b/vimrc index acc361f..c3ababe 100644 --- a/vimrc +++ b/vimrc @@ -11,9 +11,14 @@ if $HOME == '/root' || exists('$SUDO_USER') endif +" Save 'runtimepath' in case it was changed by the system's configuration +" files. +let s:save_runtimepath = &runtimepath " Reset all options (except 'term, 'lines' and 'columns'). This makes sure a " system wide configuration file doesn't change default values. set all& +" And restore it after all other options were reset. +let &runtimepath = s:save_runtimepath " Make sure Vim (and not Vi) settings are used. set nocompatible