On 18/01/10 09:11, Foss User wrote:
Could you please tell me what Alt-T is supposed to do in VIM by
default? It returns me to the normal mode by default. So, it behaves
similar to<Esc> key. But I can't find this documented anywhere in
:help.
Well, it depends on your keyboard driver.
In gvim, and in some terminals, Alt-T (i.e. Alt-Shift-t) returns T +
0x80 which happens to be uppercae-O-circumflex. This doe nothing in
Normal mode; in Insert mode it inserts the letter Ô -- if Vim can see it
(AFAICT, my gvim never gets the Alt-T combo, something snatches it
before it can see it).
In other terminals, Alt-T returns <Esc> T which explains the behaviour
you saw. This is documented at :help :map-alt-keys (and it also says how
some, but not all, terminals can be switched between high-bit and
esc-prefix behaviour). See also the help for 'timeout' 'ttimeout'
'timeoutlen' and 'ttimeoutlen', which may sometimes help Vim tell apart
bytes sent by the keyboard successively for a single key, bytes
corresponding to keys you hit in succession, and keys which you don't
want to be taken as the {lhs} of a mapping.
If you meant Alt-t (without Shift) then it's lowercase-o-circumflex and
<Esc>t respectively; but in some cases (depending on your 'winaltkeys'
setting) in some flavours of gvim it can trigger the Tools menu.
Best regards,
Tony.
--
Justice always prevails ... three times out of seven!
-- Michael J. Wagner
--
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php