Learn Vim at your own pace with my self-study Core Vim Course.

Learn more

Learn Vim at your own pace with my self-study Core Vim Course.

Using the changelist and jumplist

#11

Run time:

This episode introduces the changelist and jumplist, demonstrating a couple of situations where they are useful.

Shownotes

The Changelist

The changelist remembers the position of every change that can be undone. You can move back and forwards through the changelist using the commands:

g;
g,

You can view the contents of the changelist by running the command:

:changes

The Jumplist

Vim also maintains a jumplist, remembering each position to which the cursor jumped, rather than scrolled. You can move backwards and forwards through the jumplist with the commands:

ctrl-O
ctrl-I

You can view the contents of the jumplist by issuing the command:

:jumps

When you are browsing Vim’s documentation, you can follow the link under the cursor with the command:

ctrl-]

Further reading

Comments

Level-up your Vim

Training

Boost your productivity with a Vim training class. Join a public class, or book a private session for your team.

Drew hosted a private Vim session for the shopify team that was one of the best workshops I have ever attended.

John Duff, Director of Engineering at Shopify

Publications

Make yourself a faster and more efficient developer with the help of these publications, including Practical Vim (Pragmatic Bookshelf 2012), which has over 50 five-star reviews on Amazon.

After reading it, I've switched to vim as my default editor on a daily basis with no regrets. ★★★★★

Javier Collado

Learn to use Vim efficiently in your Ruby projects

In association with thoughtbot, one of the most well respected Rails consultancies in the world, I've produced a series of screencasts on how to make navigating your Ruby projects with Vim ultra-efficient. Along the way, you’ll also learn how to make Ruby blocks a first-class text object in Vim. This lets you edit Ruby code at a higher level of abstraction. Available to buy from thoughtbot..