On 2009-09-18, tekion wrote:
> All,
> I need help with map, i have the following:
> map <C-F9>  :TlistToggle<cr> "control + f9
> map <S-F9>  :TlistToggle<cr> "shift +f9
> map <A-F9>  :TlistToggle<cr> "alt + f9
> 
> All of the above are not working.  However, the below sytax seems to
> work:
> map tt  :TlistToggle<cr>
> 
> Any idea as to how this.   Thanks.

Do you know that your keyboard emits anything for those key
combinations?

For each of those key combinations, try this.  Open a vim buffer,
enter insert mode, type Ctrl-K, then the key combination.

For me, using vim in an xterm on a Linux system, I get the
following when I do that.  I started with a bare <F9>, then the
three left-hand-sides of your mappings.

    <F9>

    <S-F9>
    <M-F9>

Note that I got nothing for <C-F9>.  I happen to get the same
results when I run gvim on that same system.  When I do that using a
similar xterm running ssh in a screen session locally and running
Cygwin vim on the remote system, I get this:

    <F9>

    [20;2~
    [20;3~

I still don't get anything for <C-F9>, since that seems to be a
function of my xterm, but in this case, vim doesn't understand the
escape sequences it receives for the <S-F9> and <A-F9> combinations,
so it just shows the sequences.

When you try this for your key combinations, you are likely to get
one of three results:

-  <F9>, indicating that your keyboard sends an unmodified <F9> even
   when a modifier key is being held;
-  Nothing, indicating that your keyboard doesn't send anything for
   that key combination;
-  An escape sequence, indicating that your keyboard may be sending
   a unique sequence for that key combination, but vim doesn't
   understand it.

The last one can be fixed.  The others can't, as far as I know.

If you would like more help with this, it would be helpful to us if
you'd say what OS you're using, whether vim or gvim, and if vim,
what terminal you're running it in.

HTH,
Gary



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

Reply via email to