NeoComposer.nvim icon indicating copy to clipboard operation
NeoComposer.nvim copied to clipboard

[docs] Inserting special characters in `:EditMacros`

Open juanMarinero opened this issue 3 months ago • 0 comments

: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 :EditMacros buffer. This is different from tuurep/registereditor.
  • But a macro can insert new lines pressing Enter in insert mode. No need to Esc + 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:

  1. Ctrl + V
  2. And then press the Enter key

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/).

juanMarinero avatar Sep 19 '25 14:09 juanMarinero