Drill 05: Marks & Jump Lists

Set bookmarks, navigate jump history, never lose your place.

Drill Exercises

Exercise 1: Setting Marks

  1. Go to a line, press ma

  2. Go to another line, press mb

  3. Go to another line, press mc

Exercise 2: Jumping to Marks

  1. 'a - jump to mark a (line)

  2. `b - jump to mark b (exact position)

  3. 'c - jump to mark c

Exercise 3: Jump List

  1. gg - go to top (creates jump)

  2. G - go to bottom (creates jump)

  3. /pattern - search (creates jump)

  4. Ctrl-o - go back through jumps

  5. Ctrl-i - go forward through jumps

Exercise 4: Change List

  1. Make some edits in different places

  2. g; - go to older change

  3. g, - go to newer change

  4. gi - go to last insert and insert

Exercise 5: Automatic Marks

  1. Make an edit

  2. '. - jump to last change

  3. '^ - jump to last insert

  4. '' - toggle to previous position

Self-Assessment

Skill Comfortable?

m{a-z} setting marks

[ ] Yes [ ] Need practice

' vs ` jump

[ ] Yes [ ] Need practice

Ctrl-o/i jump list

[ ] Yes [ ] Need practice

g; g, change list

[ ] Yes [ ] Need practice