3 ms·
Related to that, macros are just recorded into normal registers. You can get it out with: "qp Edit it, and put it back into the register with "qdd
by Izkata 2y ago
Related to that, macros are just recorded into normal registers. You can get it out with:
"qp
Edit it, and put it back into the register with
"qdd
- rav 2y agoHeads up - you should use "qD instead of "qdd to avoid an extra newline at the end of the register contents. (In fact the current Vim 9.1.954 behavior seems a bit odd in that it moves the cursor down, but not to the start of the line, as if j is pressed... Seems like a bug to me.)
- Izkata 2y agoAnd D goes from cursor to end of line instead of the whole line. Wasn't sure how complicated I wanted the description to be.