Ctrl-+ is not defined reliably in ASCII: when x is a printable key, Ctrl-x is
defined as follows:
x and 0x1F if 0x40 <= x <= 0x5F
Ctrl(upcase(x)) if x is a lowercase letter
0x7F if x is a question mark (0x3F)
undefined otherwise
However, Ctrl-x (on various natyional keyboards other than US-QWERTY) does not
always mean "hold Ctrl and hit x": the ctrl-key code doesn't always follow the
unshifted key code, depending on how the national keyboard is mapped.
Jumping to a tag is Ctrl-] which might be anywhere on various national
keyboards, including "hold Ctrl and hit +" but Vim still sees it as Ctrl-]
(0x1D), so you should use <C-]> in the {rhs} of your mapping in order to map
it, regardless of which keys are used to produce it.
Best regards,
Tony.
--
A bug in the hand is better than one as yet undetected.
On the left side, you should use any keycode that Vim can identify when your
keyboard sends it, and preferably something which doesn't collide with an
existing Vim command. I recommend the F keys with or without Shift as the most
likely candidates.
Due to the way Vim uses "cooked" keyboard input (and also to the ASCII
representation of control keys), Ctrl + printable key is only reliably seen if
the "printable key" is one of
?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]abcdefghijklmnopqrstuvwxyz though on keyboards
other than US-QWERTY some of the "Ctrl + nonalphabetic printable key"
combinations may be strangely located or nonexistent (and as said in a
previous post, Ctrl + uppercase letter and Ctrl + lowercase letter are
equivalent).
Among these Control keys, Ctrl-[ is equivalent to Esc, Ctrl-I is equivalent to
Tab, Ctrl-M is equivalent to Enter. However, Shift-Tab is different from
Ctrl-Shift-I (which is Tab), Ctrl-Enter is different from Ctrl-M (which is
Enter, even when using both Ctrl keys), etc.
To check if a given keystroke is "seen" by Vim, hit it in Insert mode,
preceded by Ctrl-V (to see the keycode) or by Ctrl-K (only for a nonprinting
key or key combo, to see the <> code if any). In gvim many keys produce the
same result in both cases. (And if Ctrl-V is the paste key because you used
mswin.vim, which I don't recommend, then use Ctrl-Q instead.)
Best regards,
Tony.
--
ARTHUR: Right! Knights! Forward!
ARTHUR leads a charge toward the castle. Various shots of them battling on,
despite being hit by a variety of farm animals.
"Monty Python and the Holy Grail" PYTHON (MONTY) PICTURES LTD