NeoComposer.nvim
NeoComposer.nvim copied to clipboard
[docs] Inserting special characters in `:EditMacros`
:EditMacros
Esc
To insert Esc it works like in tuurep/registereditor:
### Inserting special characters in macros
When you need to insert special characters like `<Esc>` (displayed as `^[`) in a macro, press <kbd>Ctrl</kbd> + <kbd>v</kbd> in insert mode followed by <kbd>Esc</kbd>
New line
What new line I refer to.
- In this plugin each macro must occupy one line of the
:EditMacrosbuffer. This is different from tuurep/registereditor. - But a macro can insert new lines pressing
Enterin insert mode. No need toEsc+o(https://vimhelp.org/insert.txt.html#o).
To insert a new line (displayed as ^M if visual yanked) I found out by try-error that it's analogous:
-
Ctrl+V - And then press the
Enterkey
Though https://stackoverflow.com/a/1110700 states to press Ctrl+M instead of Enter:
To get
^M, press^V ^M, where ^ is CTRL on most keyboards
Notice that ^ is CTRL on most keyboards.
Others
Maybe more special characters would be handy if explained how to insert them in the macro edit buffer (via :EditMacros).
Request
Please link or document this in the README (since there are no docs/).