Undo whenever you make a mistake
If you have made a mistake in editing, either by wrongly deleting text or inserting it at a wrong location, then as a first measure, just press{Esc} and then u to undo the last action. If that makes matters worse, use u again. Linux users should insted use {Ctrl-r}.
Cleaning the screen
If the screen gets garbled for some reason, use {Ctrl-l}(el) in Command Mode to redraw the screen. If you hit {Ctrl-l} in the Input Mode, you'll see ^l on the screen, use the backspace key to wipe it out, press{Esc} and then hit {Ctrl-l}.
Don't use {CapsLock}
vi commands are case-sensitive; a and A are different commands.
Avoid using the PC navigation Keys
As far as possible, avoid using all the standard navigation keys.
Tuesday, June 5, 2007
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment