October 2012
346 pages
7h 40m
English
| Tip 53 | Mark Your Place and Snap Back to It |
Vim’s marks allow us to jump quickly to locations of interest within a document. We can set marks manually, but Vim also keeps track of certain points of interest for us automatically.
The m{a-zA-Z} command marks the current cursor location with the designated letter (m
). Lowercase marks are local to each individual buffer, whereas uppercase marks are globally accessible. We’ll learn more about them in Tip 58. Vim does nothing to indicate that a mark has been set, but if you’ve done it right, then you should be able to jump directly to your mark with only two keystrokes from anywhere in the file. ...
Read now
Unlock full access