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 [061022 17:41]: > I don't want to support that, because it causes mistakes. Consider > being in Insert mode and typing " o" to open a new line or > " > n" to find t

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

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

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 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 main

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 [061022 17:41]: I don't want to support that, because it causes mistakes. Consider being in Insert mode and typing " o" to open a new line or " n" to find the next match. A timeout won't help, the two keys can

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

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

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

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

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

2006-10-22 Thread Bram Moolenaar
Alexey Froloff wrote: > * Bram Moolenaar [061022 14:27]: > > How do you distinguish between someone typing " key" and > > " 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 b works bot

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

2006-10-22 Thread Alexey I. Froloff
* Bram Moolenaar [061022 17:41]: > I don't want to support that, because it causes mistakes. Consider > being in Insert mode and typing " o" to open a new line or " > 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 something

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

2006-10-22 Thread A.J.Mechelynck
Alexey I. Froloff wrote: * Bram Moolenaar [061022 14:27]: How do you distinguish between someone typing " key" and " 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 b works both the same, if Al

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

2006-10-22 Thread Martin Stubenschrott
On Sun, Oct 22, 2006 at 02:46:02PM +0400, Alexey I. Froloff wrote: > Alt+b and b works both the same, if Alt+Key sends Key > sequence. Consider this as a feature. But is there a timeout? because when this feature is set, I don't want breaking things, when I press b to go back a word. b should on

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

2006-10-22 Thread Alexey I. Froloff
* Bram Moolenaar [061022 14:27]: > How do you distinguish between someone typing " key" and > " 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 b works both the same, if Alt+Key sends Key sequence.

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

2006-10-22 Thread Bram Moolenaar
Alexey Froloff wrote: > * Alexey I. Froloff [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. "" is stored internaly a

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 no

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

2006-10-21 Thread Alexey I. Froloff
* Alexey I. Froloff [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. "" is stored internaly as "x" sequence (was (x | 0x80)). 2. Alt+k

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

2006-10-21 Thread Alexey I. Froloff
* A.J.Mechelynck [061021 16:52]: > As you told me recently, "you don't know what you're talking about". Most [..skip..] > the keyboard sends. There's no Meta+Key entries in termcap/terminfo database. See readline documentation for "convert-meta" and "input-meta" options and xterm(1) for "eightBi

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

2006-10-21 Thread A.J.Mechelynck
Alexey I. Froloff wrote: * A.J.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

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

2006-10-21 Thread Alexey I. Froloff
* A.J.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 nothing to do wit

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

2006-10-20 Thread A.J.Mechelynck
Alexey I. Froloff wrote: * Bram Moolenaar [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 doesn't

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

2006-10-20 Thread Alexey I. Froloff
* Bram Moolenaar [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 . So, is a shortcut for (x | 0x80)? This is not right. Not _always_ right. In general, this is

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 something > > maps CYRILLIC CAPITAL I (in KO

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

2006-10-20 Thread Alexey I. Froloff
* A.J.Mechelynck [061020 06:28]: > This just means that Vim cannot distinguish between a CYRILLIC CAPITAL I > sent by your keyboard because you hit the И key, or the same bit-pattern > sent by your keyboard because you hit the Alt and I keys together. There's > nothing Vim can do about it, all

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 something maps CYRILLIC CAPITAL I (in KOI8-R locale) instead

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 something maps CYRILLIC CAPITAL I (in KOI8-R locale) instead of Alt-I. Also, vim sugges