In the context of mini.pairs
, what do <CR>
and <BS>
represent or perform?
#1372
-
Hello, I am struggling to understand the meaning of the phrase "Pairs get automatically registered to be recognized by and " in the description of mini.pairs. I live in a non-English-speaking country. Could you please provide additional explanation about what kind of actions this refers to? Thank you very much for creating such a great plugin. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
No worries, the documentation probably could be a bit more explicit here.
Registering pair for the key means that pressing that key when inside the pair will do something extra (see here):
Hope this helps. |
Beta Was this translation helpful? Give feedback.
No worries, the documentation probably could be a bit more explicit here.
<CR>
meansEnter
key and<BS>
meansBackspace
key. It is a standard notation for those keys in Neovim help. You can look at:h key-notation
for more details.Registering pair for the key means that pressing that key when inside the pair will do something extra (see here):
<CR>
inside registered pair (for example,()
) leads to putting an extra blank indented line between pair characters. See here.<BS>
inside registered pair (for example,()
) leads to deleting whole pair. See here.Hope this helps.