3

I known the keypad is KPlus and KMinus.

i'm try to use <C--> and <C-+> to define the key map but it didn't work. can you known the origin answer? help me. thanks.

foxundermon
  • 570
  • 7
  • 18

2 Answers2

3

It would appear that what you're after is impossible because Ctrl-- doesn't map to an ASCII character. Here's why, according to this answer:

I am not sure, but it might be because <C-;> does not map to an ASCII character. Only @, A-Z, [, \, ], ^ and _ map to ASCII characters (0 through 31 respectively) when combined with Ctrl.

Rory O'Kane
  • 29,210
  • 11
  • 96
  • 131
horta
  • 1,110
  • 8
  • 17
1

here is a long talk about the same issue:

In many cases, Ctrl + minus produces the same code as Ctrl + underscore (. You might try mapping that instead. Works here under rxvt-unicode with a U.S. keyboard:

map {rhs}

It's also triggered for Ctrl + slash. So, you can't map these to different {rhs}'s: <C--> = <C-_> = <C-/>

I have tried and for me it works. So you can make it work, but c-_ and c-/ will also be mapped to that. You can give it a try:

:map <C-_> :echo "hello"<CR>

dgmora
  • 1,239
  • 11
  • 27