Skip to content

In the context of mini.pairs, what do <CR> and <BS> represent or perform? #1372

Closed Answered by echasnovski
jiggol asked this question in Q&A
Discussion options

You must be logged in to vote

No worries, the documentation probably could be a bit more explicit here.

<CR> means Enter key and <BS> means Backspace 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):

  • Pressing <CR> inside registered pair (for example, ()) leads to putting an extra blank indented line between pair characters. See here.
  • Pressing <BS> inside registered pair (for example, ()) leads to deleting whole pair. See here.

Hope this helps.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@jiggol
Comment options

Answer selected by echasnovski
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
2 participants