0

This question already has an answer here:

I am wondering why I can't use a mapping for <C-)> when a mapping for ) already exists.

:imap shows:

i  )           *@<C-R>=AutoPairsInsert(')')<CR>
i  <C-)>       * )

I expect to be able to press Ctrl + ) and have ) inserted. Instead, my cursor jumps as if I just pressed a an unmodified ) key.

How can I keep my ) mapping and have <C-)> work also?

marked as duplicate by Rich, 8bittree, DJMcMayhem, Herb Wolfe, statox Oct 30 '17 at 10:55

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

  • Can you include the mapping lines from your vimrc? If you have written iremap instead of inoremap you'll have recursively declared the mapping (see here for more) and so ) will expand to the previous ) mapping. If this is the case it may be as simple as making the second mapping declaration inoremap – ljden Oct 27 '17 at 9:24
  • 3
    @ljden The * in the pasted output indicates that the nore form was used. See :h map-listing. – Rich Oct 27 '17 at 9:29
0

The problem comes from my terminal: If I run cat, pressing Ctrl-) and ) give the same output.

Not the answer you're looking for? Browse other questions tagged or ask your own question.