Use sudoedit (or sudo -e) to make sure you don't mess up permissions and also export EDITOR=vim in your shell to use a superior editor.
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
Use sudoedit (or sudo -e) to make sure you don't mess up permissions and also export EDITOR=vim in your shell to use a superior editor.