4 ms·
Ah! That's why vi's letter-named registers are written to with the q command.
by wnoise 7y ago
Ah! That's why vi's letter-named registers are written to with the q command.
- jolmg 7y agoI wonder if they're supposed to be "q(uick) registers". EDIT: Maybe not: https://retrocomputing.stackexchange.com/questions/12081/why-were-teco-variables-called-q-registers https://retrocomputing.stackexchange.com/questions/12081/why...
- bch 7y agoI was confused by the ‘q’ command in vi, so I did quick testing (in nvi(1)) and scanned vim cheat sheets. I still don’t know what ‘q’ does in the named buffer context - help?
- okal 7y agoRecording macros, I think.
- bch 7y agoLooks like you’re correct![0] In nvi, I just key my commands on a scratch line (testing occasionally), then: “xyy to load the whole line (yy) into buffer ‘x’ (“x). Execution (@x) thereafter looks ~same. [0] https://vim.fandom.com/wiki/Macros https://vim.fandom.com/wiki/Macros