On Sat, Sep 19, 2009 at 2:12 AM, bill lam wrote:
>
> On Fri, 18 Sep 2009, Gary Johnson wrote:
>> For each of those key combinations, try this.  Open a vim buffer,
>> enter insert mode, type Ctrl-K, then the key combination.
>>     <F9>
>>
>>     [20;2~
>>     [20;3~
>>
>
> I guess ctrl-k will eat the leading ^[ (ESC), ctrl-v should be more
> verbatim, not sure for windows.
>
> I would map both so that it works under gvim and vim.
> nmap <S-F9> ....
> nmap <ESC>[20;2~  ....

I have a plugin that tries to make keypresses like <C-F9> be
recognized in terminal vim.  Granted it doesn't always work perfectly,
but it is a huge step up from the vim defaults, I think.  At the very
least, I can't think of a time when it would ever make things worse,
as long as you have a sufficiently low ttimeoutlen - I use :set
ttimeout ttimeoutlen=100 personally.

http://github.com/godlygeek/vim-files/raw/master/plugin/terminalkeys.vim

Feedback is welcome, if it works for you or if it doesn't.

~Matt

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Reply via email to