|
Subjunctive posted:Could you unpack that? Is q the macro name? q is the register where the macro is stored. The normal command treats whatever comes after as if it had been typed on the current line in normal mode, so when you do that across a range, it applies the normal mode commands to each line in the range. I use :'<,'>norm (or numbered ranges) for . and & a lot, and it's great for macros, too. It's a pretty awesome command.
|
# ¿ Apr 7, 2014 18:59 |
|
|
# ¿ Apr 27, 2024 13:15 |
|
Destroyenator posted:Combining with visual mode can be pretty powerful too: Whoa, using visual mode hadn't occurred to me, that's awesome.
|
# ¿ Apr 11, 2014 21:32 |