On 2011-06-08, urbanpcguru wrote:
> I can open vim with sudo vim /etc/hosts  for example..  But how do I
> save and close it?  I can't seem to find the answer to this
> anywhere!?  Why would one easy question be so freaking hard to
> find??!!!
> 
> How do I save a file?   <--- Is this too easy a question to be
> answered?  I have been driven mad for 3 hours trying to find this one
> simple thing!!
> please

The command is :write, abbreviated :w.  You can read about it and
its variations here:

    :help save-file

To quit, or to write and quit, see the commands here:

    :help write-quit

Regards,
Gary

-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

Raspunde prin e-mail lui