When searching or writing macros in Vim, it's sometimes helpful to have a search position your cursor at the end of the matching term rather than the beginning. You can use the start of match atom to accomplish this.
/some term\zs
This would match "some term" and position your cursor at the end of the match. See (help :regexp) for other atoms and general regexp goodness.
Thanks to Chris Sutter for contributing this tip.
Showing posts with label start. Show all posts
Showing posts with label start. Show all posts
Thursday, May 15, 2008
Subscribe to:
Posts (Atom)