On 12/02/09 08:41, StarWing wrote:
>> I have a suggestion. Please never say "as title". I know there is a
>> tendency for people to do that, but it is just silly. How hard is it to
>> copy your own subject and repeat it in the message? In general, a
>> subject should not be a question -- it should just mention the topic
>> (Mapping tab and ctrl-i).
>>
>> The text of a message should make sense (and "as title" is NOT helpful).
>
> good suggestion, i won't do that...
>
> so, then how can i map<tab> to>> and<S-tab> to<< and<C-I> or
> other things to "goto newer cursor position"?
Once again, you can't. Not with any version of Vim with or without GUI.
Unless you run Console Vim in a terminal which you can hack to send
something other than a Horizontal Tab character when you hit Tab (or
something other than a Ctrl-I character, which is also a Horizontal Tab,
when you hit Ctrl-I), and I stronly advise against trying that.
>
> you can't put<S-TAB> into 7-bit ASCII code, i think<C-i> is the same
> of<S-TAB>. Vim has a method to make portable key-stroke ("\<key>"),
> so it's no diffcultly to make map portable -- just on one system
> separate them, and on other system treat them same -- just like
> "\<up>" and "\<down>" ……
No. Ctrl-I is the same as Tab, not as Shift-Tab. You can remap Shift-Tab
independently if you want.
The problem is not so much with the ":map" command as with the low-level
keyboard interface. Having Ctrl-I synonymous with Tab, Ctrl-M synonymous
with Enter, and Ctrl-[ synonymous with Escape, is guaranteed to break
nothing on any system and to be easy to get the OS's keyboard drivers to
produce, because that's how ASCII code was defined when it was invented
(originally, IIUC, for paper-tape machines). (I don't know how Vim does
it on VAX/VMS, which use EBCDIC rather than ASCII -- EBCDIC originally
went together with Hollerith cards).
(Vim distinguishes Ctrl-H and Backspace because too many systems have
been found to produce Ctrl-? -- Delete or Rubout -- instead when you hit
the Backspace key.)
Best regards,
Tony.
--
BEDEVERE: How do you know so much about swallows?
ARTHUR: Well you have to know these things when you're a king, you know.
"Monty Python and the Holy Grail" PYTHON (MONTY)
PICTURES LTD
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---