On 05/11/08 04:17, 703designs wrote:
> It's common to have keyboard shortcuts with the Shift modifier. How
> would I go about mapping to a three key press, for example, Shift +
> Ctrl + U?
In Vim, Ctrl+Shift+u is the same as Ctrl+u (and similarly for any letter
key). For non-printable keys gvim does, for instance, see Ctrl-Shift-Ins
(which is <C-S-Insert> in a mapping) as different from Ctrl-Ins. Console
Vim may or may not see those chords.
Alt-key chords are shift-sensitive: <M-A> (Alt-Shift-a) is not the same
as <M-a> (Alt-a) and both are different from <M-C-A> (Ctrl-Alt-a) but
the latter is the same as Alt-Ctrl-Shift-a. You could map a four-key
chord with a non-printable key, e.g. <M-C-S-Insert> is Ctrl-Shift-Alt-Ins
To insert into your editfile the <> code for a non-printable key with or
without modifiers, use, in Insert mode, Ctrl-K followed by the key or
keychord. For a printable key with Alt and/or Shift there is usually a
printable equivalent, e.g. Alt-x is ø (small o with slash as in Danish
"København" or "øre"); and Ctrl-K has a different meaning when followed
by printable keys.
Best regards,
Tony.
--
TV is chewing gum for the eyes.
-- Frank Lloyd Wright
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---