]> ruderich.org/simon Gitweb - config/dotfiles.git/commitdiff
vimrc: Don't reset 'runtimepath'.
authorSimon Ruderich <simon@ruderich.org>
Sun, 21 Mar 2010 00:54:35 +0000 (01:54 +0100)
committerSimon Ruderich <simon@ruderich.org>
Sun, 21 Mar 2010 00:54:35 +0000 (01:54 +0100)
vimrc

diff --git a/vimrc b/vimrc
index acc361f74e54da10b3daf9b41692d963e6761794..c3ababe711bb54e8c66dfddf019d0f9995cb008d 100644 (file)
--- a/vimrc
+++ b/vimrc
@@ -11,9 +11,14 @@ if $HOME == '/root' || exists('$SUDO_USER')
 endif
 
 
 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&
 " 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
 
 " Make sure Vim (and not Vi) settings are used.
 set nocompatible