Tips for using markers in vim
Within vim's command mode
maSets the marker "a" at the current cursor position.
marksShows you the markers you have placed.
Moving around
'aMoves to the first non-blank character on the line for maker "a".
`aMoves to the first character (blank or otherwise) on the line for marker "a".
Uses
d'aWill delete everything from the current cursor position all the way up to and including the line containing maker "a".
y'aWill yank everything from the current cursor position all the way up to and including the line containing "a".
Fun uses
'as/Lorem/lorem/gReplaces "Lorem" with "lorem" at marker "a".
,'ds/Lorem/lorem/gReplaces "Lorem" with "lorem" from the current cursor position all the way up to and including the line containing marker "d".
Written by Andrew Sledge
Related protips
Have a fresh tip? Share with Coderwall community!
Post
Post a tip
Best
 #Vim 
Authors
Sponsored by #native_company# — Learn More
#native_title#
#native_desc#

 
 
 
