Possible Duplicate:
How does the vim “write with sudo” trick work?
This situation always happen: I try to vi
a configuration file but I forget to add sudo
before it, and when I try to save it, vi
prompt me that this file is read only.
How can I change to super-user privilege without get out of vi
and re-edit that file?