Marks#

Based on Practical Vim, 2nd ed. Tip 54 (Mark Your Place and Snap Back to It.)

Setting Marks#

  • m[a-zA-Z]: Set a mark
    • [a-z]: Local to the current buffer
    • [A-Z]: Global across files

Jumping to Marks#

  • '<mark>: Move to the line where a mark was set (first non-whitespace character)
  • `<mark>: Move to the exact position (line and column) where a mark was set

Listing Marks#

  • :marks: List all current marks
  • :marks <arg>: List marks specified in <arg>