On Sun, 24 Oct 2010, PabloHot wrote:
Hi All,
I'm trying something like :map <C--> ... but just cannot get this to
work. I have tried using Ctrl-K to enter the '-' key, using {minus},
but the mapping does nothing when I type it. If I map map '-' on its
own it works perfectly , but just cannot get it to work when using
the Ctrl key. Is this a bug, or a I an idiot? Please help!!!
Sincerely,
Pablo Contreras
Can I just confirm this, have tried :map - ... and it works, but when
i add Ctrl key it does not work. Have tried every combination i can
think of, including :map <C--> ..., :map <C-minus>, :map <C-kMinus>,
:map <C-[Ctrl-K + '-' key]> ..., either way the result of pressing
Ctrl-- is just that a 'beep' is produced, of a 'flash' if you have set
visualbell in your _vimrc file.
This is quite frustrating. Have used AutoHotKey as a work-around but
I would really like to know if I can map these keys.
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 <C-_> {rhs}
It's also triggered for Ctrl + slash. So, you can't map these to
different {rhs}'s: <C--> = <C-_> = <C-/>
--
Best,
Ben
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php