sponsor Vim development Vim logo Vim Book Ad

basic Tip #612: save a nanosecond with marks

 tip karma   Rating -9/26, Viewed by 1777 

Read and edit this tip on the Vim tip wiki. The wiki may have a more recent version of this tip.

created:   December 4, 2003 14:33      complexity:   basic
author:   J Kawabata      as of Vim:   5.7

Instead of marking all the time with "ma", mark with "ml".  When you need to return to the mark, `l is a little quicker to type than `a.  

If you save a fraction of a second many times, you'll have saved as much time as it took to read this tip!

 rate this tip  Life Changing Helpful Unfulfilling 

<< Open big files and work fast | open last edited file, AKA lvim for bash >>

Additional Notes

Anonymous, December 4, 2003 18:33
Actually, 'ma' will save you time compared with 'ml' if you are typing with both of your hands.

Just my 2 cents
Anonymous, December 5, 2003 3:45
I use "mm", which is even faster for marking
Anonymous, December 5, 2003 6:51
I think the point is that you use the same finger for '`' as for 'a', so '`a', '`z', and '`q' are slower to type than for other marks.
Anonymous, December 5, 2003 8:32
Try ":mark a".
Anonymous, December 5, 2003 11:36
The backquote is far enough up there that most of my left hand moves when I reach for it.  Any right-handed letter should work about as well, excluding index-finger letters other than m.
Anonymous, December 8, 2003 1:47
Alternatively, you could just use the normal quote 'a rather than the backtick.  Then it doesn't matter which letter you use -- as long as it's on the left hand, it'll be quick for both m and '.
Anonymous, December 9, 2003 20:49
who cares do whatever you feel like
If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Sponsored by Web Concept Group Inc. SourceForge.net Logo