Friday, April 2, 2010

Re: How to map CTRL-F5

On 02/04/10 18:39, Jean Johner wrote:
> Thank you James.
>
> The problem arose when logging to a KDE server via Cygwin.
> I tried to connect a gnome server. It works with the<C-F5> syntax.
> It also works on windows.
>
> In the KDE server case, opening a Konsole terminal and typing CTRL-F5
> does not display anything. Moreover, all the CTRL-Fx keys are silent.
> Don't know if it due to KDE or Cygwin (or to the combination of both).
>
> The problem is that ALT-Fx and MAJ-Fx keys are also silent in this
> environment. Difficult!
>
> Best regards
> Jean
>

I'm on Linux and I used to be on KDE until very recently.

<C-F5> is the correct Vim syntax, but on Linux, KDE uses Ctrl-Fn to
switch to the n-th virtual desktop. It also uses Alt-Fn (in Vim, <A-Fn>
or <M-Fn>) for various functions of its own, and the kernel uses
Ctrl-Alt-Fn to switch to the n-th virtual console (where the first 6,
usually, are text consoles and the seventh one is your first or
-usually- only X session). Shift-Fn (in Vim, <S-Fn>) works for me, where
the "shift" key is the English name of the key which the French call "la
touche majuscule". <M-key> is meta (usually the same as Alt), not majuscule.

To check whether Vim sees a given key (or key combination), make sure
that 'showcmd' is on (which is the native-Windows default but not the
Unix default), then place Vim in Insert mode and hit Ctrl-V (or Ctrl-Q
if mswin.vim has remapped your Ctrl-V to the paste operation) followed
by the key in question. If ^V (or ^Q) is still displayed near bottom
right of your screen, Vim didn't get that other key. If it did, the
keycode (or, in gvim for a non-printable key, the <> key name) has now
been inserted in your Insert-mode buffer the way Vim saw it.


Best regards,
Tony.
--
An extraordinary TALL KNIGHT in all black (possibly John with Mike
on his
shoulders) walks out from the dark trees. He is extremely fierce and
gruesome countenance. He walks towards KING ARTHUR and PATSY, who are
wazzing like mad. (Salopian slang, meaning very scared. almost to the
point of wetting oneself, e.g. before an important football match or
prior to a postering. Salopian slang meaning a beating by the school
praeposters. Sorry about the Salopian slant to this stage direction
- Ed.)
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD

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

To unsubscribe, reply using "remove me" as the subject.

No comments: