From 550fbc99ccb3214cee3e80e82e011c04ae565b1c Mon Sep 17 00:00:00 2001 From: Simon Ruderich Date: Sun, 21 Mar 2010 01:54:35 +0100 Subject: [PATCH] vimrc: Don't reset 'runtimepath'. --- vimrc | 5 +++++ 1 file changed, 5 insertions(+) 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 -- 2.44.2