On 26-Oct-2010 14:04, Vlad Irnov wrote:
> On Oct 23, 4:56 pm, PabloHot <[email protected]> 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
> 
> This should be Vim FAQ number 1. It is really "frequently asked".
> See answers by Tony Mechelynck:
> http://groups.google.com/group/vim_use/browse_thread/thread/e957885e2b2374c6/
> http://groups.google.com/group/vim_use/browse_thread/thread/e080ea2a2cfca445/
> http://groups.google.com/group/vim_use/browse_thread/thread/ab2bc69a0c7a4a00/
> http://groups.google.com/group/vim_use/browse_thread/thread/a0d1176156bc7078/
> http://groups.google.com/group/vim_use/browse_thread/thread/b105423d49fdfaf6/
> http://groups.google.com/group/vim_use/browse_thread/thread/8812aaa9723f65df/
> 
> Ctrl-{Key} in Vim means ASCII control character:
> http://en.wikipedia.org/wiki/ASCII#ASCII_control_characters

...and, accordingly, please put this high on the list of things to implement for
the next Vim version. There have been a couple of attempts / discussions to fix
this (for GVIM, obtaining the raw keys is easy, but IIRC this could also be done
for most terminals, through the use of a different "input library").

I'm mostly using GVIM myself, and I'm running out of available short key
combinations the more I customize Vim, and it's frustrating to be not able to
re-create mappings that my muscle memory knows so well from other IDEs. There'll
never be full feature parity between GUI and terminal versions (even today,
certain Vim mappings like Ctrl/Shift-Function key do not work in all terminals),
so why not finally allow the full breadth of key combinations that today's users
have come to expect from powerful applications?!

-- regards, ingo

-- 
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

Raspunde prin e-mail lui