Step 5 of 8

14. Marks

Where are my marks set?

You can use the :marks command to see where your marks are set. This command tells you the line, column, file, and text associated with each mark.

Work through the checklist below. Set a couple of marks, then list them with :marks — you’ll spot your own marks alongside some that Vim manages automatically. After showing the list, Vim waits for you to press Enter before returning you to your file.

  1. Set mark a somewhere Any line you like — press ma.
  2. Set mark b somewhere else Move elsewhere in the file and press mb.
  3. List your marks Type :marks and hit Enter, then hit Enter again to put the list away.
Set mark a somewhere Any line you like — press ma.

Next: Set mark b somewhere else

Loading editor…