Skip to content

Commit 2db3fd1

Browse files
committed
Learn how to use Vim marks
1 parent a5c6aad commit 2db3fd1

1 file changed

Lines changed: 13 additions & 0 deletions

File tree

TODO.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,19 @@
1616
6. NOTE: You can also end your macro by typing `@<register>`, to recursively call your macro for the whole file
1717
7. View all macros by entering command mode + "registers" or "reg" for short.
1818

19+
## Marks
20+
21+
Command | Description
22+
ma | set mark a at current cursor location
23+
'a | jump to line of mark a (first non-blank character in line)
24+
`a | jump to position (line and column) of mark a
25+
d'a | delete from current line to line of mark a
26+
d`a | delete from current cursor position to position of mark a
27+
c'a | change text from current line to line of mark a
28+
y`a | yank text to unnamed buffer from cursor to position of mark a
29+
:marks | list all the current marks
30+
:marks aB | list marks a, B
31+
1932
## Tests
2033

2134
- TODO: Run the tests from a file/line

0 commit comments

Comments
 (0)