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?

  • 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, 2017 at 9:24
  • 3
    @ljden The * in the pasted output indicates that the nore form was used. See :h map-listing.
    – Rich
    Oct 27, 2017 at 9:29

1 Answer 1


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.