VIM Mark Motions

Table of Content

Create marks

I Intent to… Keys to Press Note
Mark cursor position as b mb m{a-zA-Z}
Mark line 10 in current buffer as c :10kc :[range]k{a-zA-Z’}

List marks

I Intent to… Keys to Press Note
List all marks :marks :marks
List mark b :marks b :marks {arg}
List mark b and c :marks bc  

Jump to marks

I Intent to… Keys to Press Note
Goto mark a to first non blank character 'a ‘{a-z}
Goto mark a to first character `a `{a-z}
Goto first character of next mark ]' ]'
Goto last character of next mark ]` ]`
Goto first character of previous mark [' ['
Goto last character of previous mark [` [`

Delete marks

I Intent to… Keys to Press Note
Delete mark a :delm a :delm
Delete mark a and b :delm ab  
Delete all marks :delm!  

Using marks

I Intent to… Keys to Press Note
Delete characters from current cursor position to mark a d`a  
Delete lines from current cursor position to mark a d'a  
Yank lines to unnamed register from current cursor position to mark a y'a  
Yank lines to register x from current cursor position to mark a "xy'a  

Reference