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?
iremapinstead ofinoremapyou'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 declarationinoremap– ljden Oct 27 '17 at 09:24*in the pasted output indicates that thenoreform was used. See:h map-listing. – Rich Oct 27 '17 at 09:29