Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-25 Thread Ilya Sher
A.J.Mechelynck wrote: Ilya Sher wrote: A.J.Mechelynck wrote: Alexey I. Froloff wrote: * Bram Moolenaar Bram@ [061022 17:41]: I don't want to support that, because it causes mistakes. Consider being in Insert mode and typing Esc o to open a new line or Esc n to find the next match. A

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-22 Thread Bram Moolenaar
Alexey Froloff wrote: * Alexey I. Froloff raorn@ [061021 17:53]: Vim should _support_ Meta-Sends-Escape mode which is A Must Have for non-ascii 8-bit locales Patch attached. New option - 'eightbitmeta' ('em'), default on. If unset, two things happen: 1. M-x is stored internaly as

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-22 Thread Alexey I. Froloff
* Bram Moolenaar Bram@ [061022 14:27]: How do you distinguish between someone typing Esc key and Esc key generated by Alt+key? I don't. No program can do that, as Tony mentioned earlier. bash (readline) for example: M-b - backward-word Alt+b and Escb works both the same, if Alt+Key sends

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-22 Thread Alexey I. Froloff
* Bram Moolenaar Bram@ [061022 17:41]: I don't want to support that, because it causes mistakes. Consider being in Insert mode and typing Esc o to open a new line or Esc n to find the next match. A timeout won't help, the two keys can be typed within ten msec. So, all plugins that imap

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-22 Thread A.J.Mechelynck
Alexey I. Froloff wrote: * Bram Moolenaar Bram@ [061022 14:27]: How do you distinguish between someone typing Esc key and Esc key generated by Alt+key? I don't. No program can do that, as Tony mentioned earlier. bash (readline) for example: M-b - backward-word Alt+b and Escb works both the

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-22 Thread A.J.Mechelynck
Ilya Sher wrote: A.J.Mechelynck wrote: Alexey I. Froloff wrote: * Bram Moolenaar Bram@ [061022 17:41]: I don't want to support that, because it causes mistakes. Consider being in Insert mode and typing Esc o to open a new line or Esc n to find the next match. A timeout won't help, the two

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-22 Thread A.J.Mechelynck
Alexey I. Froloff wrote: [...] P.S. Please, don't tell me that I should not use M-x in insert-mode mappings, tell this to script maintainers. latexSuite for example. If you have a problem with the Latex-Suite, then IMHO you should mention that, and it would do no harm to add the Latex-Suite

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-22 Thread Alexey I. Froloff
* A.J.Mechelynck antoine.mechelynck@ [061022 22:41]: - Maybe Bram Moolenaar can type at 100 keystrokes / second, I can't. [..skip..] http://marc.theaimsgroup.com/?l=vim-devm=116133874121615w=2 Please, read this. Twice. I can't enter CYRILLIC CAPITAL I if I have imap on M-i. - There is

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread Alexey I. Froloff
* A.J.Mechelynck antoine.mechelynck@ [061021 08:01]: IMHO, the way to configure it is not by hacking Vim but (at least in console Vim) by having a properly-built termcap/terminfo which tells Vim which codes correspond to which keys. IIRC, only user can tell what will Meta+Key send and it has

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread A.J.Mechelynck
Alexey I. Froloff wrote: * A.J.Mechelynck antoine.mechelynck@ [061021 08:01]: IMHO, the way to configure it is not by hacking Vim but (at least in console Vim) by having a properly-built termcap/terminfo which tells Vim which codes correspond to which keys. IIRC, only user can tell what will

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-21 Thread Martin Stubenschrott
On Sun, Oct 22, 2006 at 01:31:09AM +0400, Alexey I. Froloff wrote: Vim should _support_ Meta-Sends-Escape mode which is A Must Have for non-ascii 8-bit locales Patch attached. New option - 'eightbitmeta' ('em'), default on. If unset, two things happen: I like the idea, but did not test

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-20 Thread Bram Moolenaar
Alexey Froloff wrote: There is bug in vim... According to :help :map-alt-keys : By default Vim assumes that pressing the ALT key sets the 8th bit of a typed character. This is wrong for 8-bit non-ascii locales. Example: :imap M-i something maps CYRILLIC CAPITAL I (in KOI8-R

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-20 Thread Alexey I. Froloff
* Bram Moolenaar Bram@ [061020 23:04]: Read again: Vim _assumes_ the Alt key sets the 8th bit. What about GVim? If this doesn't happen, then you need to map the character that is produced instead of M-x. So, M-x is a shortcut for (x | 0x80)? This is not right. Not _always_ right. In

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-20 Thread A.J.Mechelynck
Alexey I. Froloff wrote: * Bram Moolenaar Bram@ [061020 23:04]: Read again: Vim _assumes_ the Alt key sets the 8th bit. What about GVim? When Bram talks about Vim without specifying Console or GUI version, he means all of them unless the opposite is obvious from the context. If this

insert-mode :map-alt-keys and 8-bit locales

2006-10-19 Thread Alexey I. Froloff
There is bug in vim... According to :help :map-alt-keys : By default Vim assumes that pressing the ALT key sets the 8th bit of a typed character. This is wrong for 8-bit non-ascii locales. Example: :imap M-i something maps CYRILLIC CAPITAL I (in KOI8-R locale) instead of Alt-I. Also, vim

Re: insert-mode :map-alt-keys and 8-bit locales

2006-10-19 Thread A.J.Mechelynck
Alexey I. Froloff wrote: There is bug in vim... According to :help :map-alt-keys : By default Vim assumes that pressing the ALT key sets the 8th bit of a typed character. This is wrong for 8-bit non-ascii locales. Example: :imap M-i something maps CYRILLIC CAPITAL I (in KOI8-R locale)