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 locale) instead of Alt-I. > > Also, vim suggests to set "convert-meta" to "on" in inputrc which > is also wrong for 8-bit non-ascii locales. > > Finally, typing <C-V><M-i> in insert mode gives me the same > CYRILLIC CAPITAL I... > > > I think there should be option for Meta handling...
Read again: Vim _assumes_ the Alt key sets the 8th bit. If this doesn't happen, then you need to map the character that is produced instead of <M-x>. Vim can't know what key is actually pressed when some character with the 8th bit set arrives, unless your keyboard does what Vim expects. So either make your keyboard work as Vim expects or don't use the <M-x> mappings. -- If bankers can count, how come they have eight windows and only four tellers? /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net \\\ /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\ \\\ download, build and distribute -- http://www.A-A-P.org /// \\\ help me help AIDS victims -- http://ICCF-Holland.org ///