search

Loading
Showing posts with label editor. Show all posts
Showing posts with label editor. Show all posts

Friday, July 12, 2013

How to save using vim editor with sudo privilege

Some times we will start editing the configuration files or the files which need root privilege in vi/vim and once we are about to save it, we will understand that we haven't edited it with sudo privilege.

It may be almost impossible to think quitting the editor without saving (:q!) and start it all over agin.