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>?
Thanks
Btw. the snippet author is Tim Pope - he has a lot of great vim plugins and certainly knows what he's doing, so I'm curious to find out why he chose F31 to F35 when there seems to be a number of "lower" F-numbers.
Or, maybe, the author was on a system using X and knew about xmodmap. If I
xmodmap -e 'keycode 135 = F30'
then gvim happily sees and can map F30 when I press the otherwise useless menu key. The limit on my system (Kubuntu 13.10) is F35, I've no idea where that comes from but I note tpope's mappings go up to F35. (When I was last on windows I used registry hacks to achieve similar results.)
One can find out the keycodes and keysyms using the xev utility. Note that one's "window manager" or "desktop environment" or whatever has to allow use of the key. My keyboard has silly little mail, home page and search buttons and I can use the mail and home page buttons with gvim but not the search button, as KDE wants to start a browser on Google if I press it.
Regards, John Little