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:
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.
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 ...