Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the '10.5: Restore Terminal's welcome message' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
10.5: Restore Terminal's welcome message
Authored by: pwsloss on Nov 02, '07 05:15:54PM

A Power User hint or two for "vi":
To save the edited file and exit, type:
:wq<ret>
or
:ZZ<ret>
where <ret> means "hit the Return" key. I had a friend who responded to such a
prompt by actually typing "<ret>", so I patched the code to accept that response as well. Easier than explaining it to him.



[ Reply to This | # ]
You mean Escape ZZ
Authored by: googoo on Nov 02, '07 07:24:27PM

In vi, :ZZ<ret> only gets you an error message. You mean escape (which causes you to exit the insert mode if you are in it) followed by ZZ (two upper-case Zs). That saves the file (if you made any changes) and quits. Happy vi-ing!

-Mark



[ Reply to This | # ]
10.5: Restore Terminal's welcome message
Authored by: pwsloss on Nov 02, '07 10:15:29PM

True.
<esc> before any command to terminate addition of new text.
No colon with "ZZ"
Glad we cleared that up.




[ Reply to This | # ]