File marks are like regular marks except that they are associated to a specific file, which makes them pretty useful for quick file navigation. One use that is commonly mentionned would be to add a V
mark to one's vimrc
, for example, which would make editing it only one 'V
away.
Here, a mnemonic mark is left when leaving files of a specific kind:
- mark
C
for "CSS" and "SCSS", - mark
H
for "HTML", - etc.
which makes it super easy to jump back to the last file of a certain kind that was edited:
'E
This is very handy in long sessions where you edit lots of filetypes.
This was initially VERY influenced by another one I found online, circa 2011-12. I didn't bookmark it at the time, though. I have posted my own version in various forums over the years but I could never point people to the actual original and give credit where credit is due. If you know where to find it I would gladly link to it.