Hi Eric :)
* Eric Leenman <[EMAIL PROTECTED]> dixit:
> When using vim on Linux these don't work anymore because of linux "windows
> managers".
Well, that's not exact: the window manager may have its key mappings
for internal use, but it's X which is managing the keyboard. If the
window manager is using Ctrl-S, for example, you won't be able to use it
in your gvim, unfortunately. Well behaved window managers should allow
you to change the mappings (the Gnome window manager *is* well behaved,
for example).
> Is it possible to put the same functionality of the CTRL-key (and/or ALT)
> to a key which is not linux "windows manager " sensitive?
Of course, use the mapping commands. See below for an example.
> In other words: Is it possible to remap the ctrl key to for example the
> letter c?
Not a good idea in insert mode ;) but you can do it. For example,
even in insert mode, I've mapped "çç" to "gqip", but I'm still able to
type a "ç" or even a double "ç". Vim allows that :)
> So that when you are in insert-mode you can press cs as a replacement for
> CTRL-S?
Let's say you don't use so much "cs", so you can afford to wait a
bit between "c" and "s" when you *actually* have to type that in insert
mode. Then, you can do this (for saving):
imap cs <C-O>:w
But I suggest you to use the "Vim" keys for the task unless you're
very used to the C-S, C-X, C-V and C-C, because the vim keys work
everywhere and because things like "C-S" and "C-C" usually have other
meanings under Linux (namely, stop the character flow to the terminal,
and the keyboard interrupt, respectively). Vim keys and the vim way of
doing things is easy to learn. Believe it or not, after using vim for
only a month in my entire life, I'm so used to it that most of the time
I hit ":q" to exit from "elinks" or "Mutt"!
Raúl Núñez de Arenas Coronado
--
Linux Registered User 88736 | http://www.dervishd.net
It's my PC and I'll cry if I want to... RAmen!