October 2012
346 pages
7h 40m
English
| Tip 58 | Snap Between Files Using Global Marks |
A global mark is a kind of bookmark that allows us to jump between files. Marks can be especially useful for snapping back to a file after exploring a codebase.
The m{letter} command allows us create a mark at the current cursor position (m
). Lowercase letters create marks that are local to a buffer, whereas uppercase letters create global marks. Having set a mark, we can snap our cursor back to it with the `{letter} command (`
).
Try this: open up your vimrc file and press mV to set a global mark ...
Read now
Unlock full access