Joined July 2014
·

Jimi Cullen

Oxford, Bristol, London, etc.
·
·

Posted to Use your own vimrc when using sudo over 1 year ago

Instead of sudo vim, you can use sudoedit. This is safer — a user can run arbitrary shell commands from vim, so sudo vim can introduce a security risk. sudoedit opens a temporary copy of the file for you to edit with normal vim (with your own vimrc and everything) and then just uses sudo priveledges to replace the file you're editing with the temporary one.

Achievements
1 Karma
0 Total ProTip Views