On Apr 19, 1:57 am, Tony Mechelynck <[email protected]> wrote: > > Check whether your Windows console transmits Ctrl-PageUp and > Ctrl-PageDown to Vim, as follows (this method can be used for any key or > key combination, in gvim or console Vim, on any platform): > > 1. Start vim.exe and place it in Insert mode > 2. :set showcmd > 3. Hit Ctrl-V (or Ctrl-Q if Ctrl-V is used to paste) followed by the > problematic key or key combo. > > - If ^V (or maybe ^Q) is still displayed near bottom right of the > window, Vim hasn't got the keypress event for the problematic key. > - If something appears at the cursor in the edit window, that's what Vim > has seen. > > Notes: > - Showing the <> key name after Ctrl-V followed by hitting a key is > specific to gvim: in console mode you see the actual characters passed > by the terminal interface. To see the <> name (of a non-printable key) > in the terminal you must use Ctrl-K instead (this works also in gvim): see > :help i_CTRL-K > :help keycodes > :help gui-extras > :help map-special-keys > :help map-typing > :help map-keys-fails > :help xterm-modifier-keys > - The keycodes for single keys are shown by > :set termcap > but you won't see <C-PageUp> or <C-PageDown> there. However, I see under > :help dos-standard-mappings" that "typical" Dos keycodes would be the > following: > > Ctrl-PageUp = <M-N><M-C-D> = 0xCE 0x84 > Ctrl-PageDown = <M-N>v = 0xCE 0x76 > > Check the hex values by using ga on each of the two characters you say > you see after step 3 above. > > I'm not on Windows anymore, but here my konsole terminal doesn't pass > Ctrl-PageUp and Ctrl-PageDown to Vim: instead, it goes to the next shell > tab (konsole tab, not Vim tab) for Ctrl-PageUp or to the previous one > for Ctrl-PageDown. In gvim those same key events change Vim tabs > (Ctrl-PageUp goes to the previous tab, Ctrl-PageDown to the next one).
Thank you, Tony. First, it seems that there is no available additional tabs for windows XP console terminal (which could steal the keys as they do in a gnome terminal). Moreover, typing CTRL-V CTRL-<PageUp> in insert mode does generates the 0xCE 0x84 sequence; typing CTRL-<PageDown> generates the 0xCE 0x76 sequence as described in help. As these sequences are not recognized by vim (as it should be following help), I would diagnose a bug. In the same way CTRL_<Up> generates 0xCE 0xC5 and CTRL_<Down> generates 0xCE 0xD0. These sequences are not recognized by vim as shown by the fact that map <C-Up> xxx map <C-Down> xxx have no effect. It would be nice if somebody with vim on XP could reproduce the problem before I submit the case to vim_dev. Just check that, when launching vim from the windows command prompt and opening multiple tabs, the CTRL-PageUp (PageDown) keys have no effect. Thank you in advance. Best regards Jean Johner -- You received this message from the "vim_use" 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 Subscription settings: http://groups.google.com/group/vim_use/subscribe?hl=en
