Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Is there a way to map ctrl+ (or ctrl-) in vim? :map <c-+> doesn't seem to work.

share|improve this question
Don't forget that - and Num - are different keys, even though they produce the same - when pressed. (Also, VT100 numpads can be in "application" mode, where they actually produce escape sequences of their own.) – grawity Jan 8 '10 at 12:05
up vote 4 down vote accepted

As far as I know you cannot map it to that combinaton. Since Ctrl + doesn't in anything differ from just +, Vim has no way of recognizing it. Same goes for a lot of other combinations (for example, Ctrl-1 and such - they don't "send" anything back).

share|improve this answer
Yes; you can test whether something is map-able by going into insert mode and pressing Ctrl-V followed by the key you're interested in. If something appropriate gets inserted, it should be map-able. For example, enter Ctrl-V Ctrl-+ does nothing, but Ctrl-V Ctrl-P gives ^P – Al. Jan 8 '10 at 13:54
@Al - uuu, thanks! I knew there was some way to check it, but I never could remember how. – Rook Jan 8 '10 at 15:35

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .