Cover by Kim Schulz

Safari, the world’s most comprehensive technology and business learning platform.

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required

O'Reilly logo

X marks the spot

Sometimes when editing a line in a file, you have to go somewhere else in the file to look up something. Afterwards, it can be difficult to find the line you were editing, and you waste valuable time.

Wouldn't it be nice if you could mark the spot before leaving it, such that it is easy to find later?

Vim has some tools for you that can do just that. We can split it into two categories:

  • Visible markers
  • Hidden markers

In the following two sections, we will look at the possible ways of adding marks in Vim, and then it's up to you to figure out which one fits your needs the best.

Visible markers—using signs

In Vim, we have a nice feature for marking a line with a visible mark—signs. A sign is a mark that will show up in the leftmost column ...

Find the exact information you need to solve a problem on the fly, or go deeper to master the technologies and skills you need to succeed

Start Free Trial

No credit card required