From: Simon Ruderich Date: Fri, 25 Nov 2011 06:36:56 +0000 (+0100) Subject: vimrc: Allow running as root. X-Git-Url: https://ruderich.org/simon/gitweb/?a=commitdiff_plain;h=f8fbeae798dc660b5fa96a481cbf43761c666f1b;p=config%2Fdotfiles.git vimrc: Allow running as root. --- diff --git a/vimrc b/vimrc index e645706..cd775e0 100644 --- a/vimrc +++ b/vimrc @@ -3,14 +3,6 @@ " EDITOR SETTINGS -" Prevent editing as root as it may cause security problems. Use sudoedit -" instead. Thanks to godlygeek in #vim on Freenode (2009-06-19 22:21 CEST). -if $HOME == '/root' || exists('$SUDO_USER') - echomsg 'Running as root is forbidden! Use sudoedit.' - qall -endif - - " Save 'runtimepath' in case it was changed by the system's configuration " files. if has('eval')