bem’s blog

 
Filed under

sudo

 

Sudo to edit files from within vim

Often, I find myself wanting to edit a file that is owned by root, and many times in these instances, I already have opened the file in vim for reading. It is rather annoying to have to close the file in vim and run a new vim with sudo in order to edit the file. Thanks to a recent post to the vim-mac mailing list, I found the sudo vim plugin.

Filed under  //   geek   sudo   vim  

Comments [0]