Record typed characters into named register {0-9a-zA-Z"} (uppercase to append)
q{0-9a-zA-Z"}
Example
Normal 0 / 3Normal 1 / 3Normal 2 / 3Normal 3 / 3one two
three fourCursor on line 1, column 1one two
three fourCursor on line 1, column 1one two!
three fourCursor on line 1, column 8one two!
three fourCursor on line 1, column 8Record typed characters into named register {0-9a-zA-Z"} (uppercase to append).
Vim registers
aRegister a- Characterwise
Empty
Start recording into a.
Vim registers
aRegister a- Characterwise
Empty
Macro recording
- Status
recording @a
Append ! while recording the actual key sequence.
Vim registers
aRegister a- Characterwise
Empty
Macro recording
- Status
recording @a
Stop recording; the stopping q is not stored.
Vim registers
aRegister a Changed- Characterwise
A!<Esc>
Macro recording
- Status
stopped
Before & after
one two
three fourCursor on line 1, column 1Vim registers
aRegister a- Characterwise
Empty
one two!
three fourCursor on line 1, column 8Vim registers
aRegister a Changed- Characterwise
A!<Esc>
Macro recording
- Status
stopped
ILLUSTRATION. Choose empty register a; record the typed keys A!<Esc>, then stop with q. Recording occurs from typed input, outside mappings.
Details & Vim help
Record typed characters into named register {0-9a-zA-Z"} (uppercase to append). Use in Normal mode. Braced names stand for the required argument and are not typed literally. Availability and exact behavior can depend on Vim build features, options, mappings and editor state; the linked help is authoritative.