I have a strange vim behavior.
I use russian keyboard. So I have
set keymap=russian-jcukenwin"
for use ctrl-^ and enter russian letters. But also I have
set langmap=ёйцукенгшщзхъфывапролджэячсмитьбюЁЙЦУКЕHГШЩЗХЪФЫВАПРОЛДЖЭЯЧСМИТЬБЮ;`qwertyuiop[]asdfghjkl\\;'zxcvbnm\\,.~QWERTYUIOP{}ASDFGHJKL:\\"ZXCVBNM<>,№;#
so i can use vim commands in normal mode when turn on russian keyboard outside vim.
I think this two option should work together because keymap works in insert mode and langmap in normal mode. And its works except for one letter Р (U+0420).
In insert mode, when options langmap and keymaps are set and iminsert=1, I enter russian uppercase Р (shift-h) and receive english H. All other letters works fine and remain russian (as keymap maps them). If I set langmap to empty string, then this bug disappears and I type shift-h and receive russian Р as I expect. So it seems that langmap maps one letter after keymap in insert mode.
If I turn off keymap with ctrl-^, and turn on russian keyboard layout outside vim then my letter Р works well. So this strange behavior appears only with keymap active.
I try it in ubuntu linux and win xp, with different encodings (cp1251, utf-8) and always the same happens, so it is not depends on system.
It is a bug?
Thanks.
-- You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
No comments:
Post a Comment