On 18/04/10 22:12, Jean Johner wrote:
Hello,
I installed vim 7.2.411 (Cream) on a PC running Windows XP.
Everything works nice when launching gvim.
Using vim from the command line, I have the following problems:

1) Opening several tabs, the CTRL-PageUp and CTRL-PageDown keys, which
should switch between tabs, are not active.

2) Moreover, putting:
map<C-PageUp>  :tabprevious<CR>
in _vimrc, has no effect when using CTRL-PageUp
idem for mapping<C-PageDown>

3) Putting:
map<C-Down>  10<C-E>
in _vimrc, has no effect when using CTRL-CursorDown
idem for mapping<C-Up>

4) At last, typing
vim -u NONE file
going to insert mode and typing CTRL-V CTRL-PageUp should show<C-
PageUp>. Instead it shows two characters (idem for all function keys).

Do you reproduce these problems?

Best regards
Jean Johner


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).


Best regards,
Tony.
--
One day President Reagan, Chairman Andropov, the Pope, and a boy scout
were flying together in an airplane.  Right out in the middle of
nowhere the plane developed engine trouble and started to go down.
Unfortunately, only three parachutes could be found for the four
passengers!  Andropov grabbed one of the parachutes and declared
"Comrades, as leader of the socialist workers revolution, my life must
be spared," and he jumped out of the plane.  Then Reagan exclaimed "As
leader of the greatest nation on earth, I must keep the world safe for
democracy," and with that he too jumped to safety.  Now if you are
following all this (or counting on your fingers) you must see that
there is only one parachute left for the two remaining passengers.  The
Pope looked kindly upon the boy scout and said "I have had a long and
productive life, my son.  You take the parachute and leave me in God's
hands."  "That's very kind of you," the observant scout replied, "but
there is no need.  Reagan just jumped out with my knapsack."

--
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

Reply via email to