.vimrc for root user
Whenever you do sudo vim somefile, your .vimrc will not be used, so your pretty color scheme won't be used etc. If you want to have a .vimrc file for the root user, create /root/.vimrc. If you're the only user ever using root, you could even symlink your own .vimrc file from /root.
Written by Willem van der Jagt
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
#Vim
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#