Get Marked
8 January 2009
If you are a Vim user (like me) you may be surprised to know (as I was today) that you can add jump marks to save positions in files and then go back to the marked positions used simple keystrokes:
- With
mX
, whereX
is a letter, a mark will be set. - With
'X
, Vim will take you to the line marked with markX
.
Easy, isn’t it? If you are curious, you can read more on this Linux.com article. And do not forget to configure a viminfo file to save marks between edit sessions and you will get the full mark-on-the-go feature pack.