Last Updated: January 28, 2019
·
11.01K
· wkjagt

.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.