On 29 March 2014, Tony Mechelynck <[email protected]> wrote:
> On 29/03/14 11:40, Bruno Sutic wrote:
> >Hi, I'm posting this to vim_dev because it is related to plugin
> >development (apologies if it should go to vim_use).
> >
> >Recently, I discovered Tim Pope's vim-rsi plugin
> >(https://github.com/tpope/vim-rsi). I was mind-blown to discover you
> >can actually use Meta (alt key) mappings in terminal vim. I tried
> >to set this up before myself, but google searches weren't returning
> >anything useful.
> >
> >Now I'm trying to hack/tweak vim-rsi, but I'm
> >utterly puzzled by the following snippet:
> >https://github.com/tpope/vim-rsi/blob/master/plugin/rsi.vim#L49-55
> >
> >:helpgrep does not return anything on F31
> >Does anyone know how that works? What are those <Fxx>?
[...]
>
> Normally, <F1> to <F12> are the function keys on top of your
> keyboard. The Vim help mentions even <F13> to <F19>, see ":help <F13>"
> etc., but I haven't seen a keyboard which had them. I suppose that the
> author of the snippet had a very special keyboard.
[...]
In the old days it wasn't uncommon for keyboards to have 20 function
keys, labeled F0..F19. On these keyboards Shift-Fn produced distinctive
keycodes, but terminfo / termcap didn't have codes for Shift-Fn. So
people coded Shift-F0..Shift-F19 as F20..F39. Mystery solved. :)
/lcd
--
--
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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.