Becoming root from inside Vim
It could happen to anyone. The admin types:
as a regulare user. He edits the
/etc/resolv.conf file, but when he wants to hit
:x he suddenly notices that he was editing the file in read-only mode because he opened it with a normal user, not root.
Are there any vi commands to get root priviledges, so that the admin wont have to hit
sudo su - and
vi /etc/resolv.conf and edit it again?