I had some minor annoyance while using Vim on the commandline. Whenever I did: `sudo vim` my Vim plugin wheren’t loaded (root had no .vimrc). I discovered that you can add environmental variables to sudo so I added this to my ~/.bash_aliases:
alias sudo="sudo MYVIMRC=$HOME/.vimrc"
0 comments ↓
There are no comments yet...Kick things off by filling out the form below.
Leave a Comment