mirror of
https://github.com/donovanglover/nix-config.git
synced 2025-01-23 14:18:37 +01:00
Update macros and marking things in vim.md
This commit is contained in:
parent
e725b5bd92
commit
9c940a2d61
@ -229,12 +229,20 @@ Macros are used for complex commands that can't be repeated with `.`. They help
|
||||
- If you want to end the macro in insert mode, press `<C-o>` then `q`.
|
||||
- Play back a previously recorded macro: `@ + <SYMBOL>`
|
||||
- To repeat the last macro played, simply use `@@`.
|
||||
- Repeat a macro on all lines: `:%norm! @<SYMBOL>`
|
||||
- To repeat a macro on only a specific set of lines, use: `:<from>,<to>norm! @<SYMBOL>`
|
||||
- From line 5 to the end of the file: `:5,$norm! @<SYMBOL>`
|
||||
- Repeat a macro on all lines matching a pattern: `:g/pattern/norm! @<SYMBOOL>`
|
||||
|
||||
## Marking Things
|
||||
|
||||
- Mark the current line: `m + <SYMBOL>`
|
||||
- Go to a previously marked line: `' + <SYMBOL>'`
|
||||
- Go to a previously marked line, exactly where you were before: ``` + <SYMBOL>``
|
||||
- Jump to the previous cursor position: `''`
|
||||
- Jump to the previous cursor position, exactly where you were before: `` ` `` + `` ` ``
|
||||
- Jump to the previous edit location: `g;`
|
||||
- Jump to the next edit location: `g,`
|
||||
|
||||
## Indenting Things
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user