Often, you're editing one part of a file and need to go to another point to look at something. How do you get back?
You can mark your place with the m command. In command mode, type m followed by any letter. (We'll use x in the example.) Here are the commands to do the job:
I often find it just as easy to type u to undo my last edit. That pops me right back to the place where I was editing. Then I type u again to restore the edit. Watch out for the new multilevel undo feature in vi clones: typing u twice will undo two edits! (I still use m if I want to mark more than one place.)
-- TOR
Copyright © 2003 O'Reilly & Associates. All rights reserved.