Skip to content
Shuai YUAN edited this page May 29, 2015 · 1 revision

Tip 58: Snap Between Files Using Global Marks

Return to the top: <>

  • `m{letter}`: create a mark at the current cursor position.
* Lowercase letter: create marks that are local to a buffer * Uppercase letter: create global marks

References

  • `{letter}: snap the cursor back to the mark

Set a Global Mark Before Going Code Diving

Suggestion: set a global mark before using any commands that interact with the quickfix list (e.g. `:grep`/`:vimgrep`/`make`), the buffer and argument lists (e.g. `:args {arglist}`/`:argdo`)

Table of Contents


Clone this wiki locally