m
The
Command
The m command in Vim
Command
set mark
Set a mark at the cursor position. Lowercase marks (
a-z) are local to the file. Uppercase marks (A-Z) are global across files. Jump back with ' (line) or ` (exact position).Examples
ma(set mark a)'a(jump to line of mark a)`a(jump to exact position)dm(delete to mark)
Reference
Learn every Vim command visually — right in your browser.
Add Vim What? to Chrome — FreeAlso on Firefox.
Related commands