bill lam wrote: > Just curious. Users who use Cyrillic (or Greek) have to shift > toggle in order to type Latin letters. However vim by default > only recognize ascii such as hjkl or modkey+ascii such <C-F>. > Will it be very clumsy to use vim to edit text such as email?
I use 'keymap' option (for corresponding :help topics see very informative first post from Tony). 'keymap' option allows me to press CTRL-6 in insert mode and after that Cyrillic characters are seems to be sent by my keyboard like they are sent if you have switched system-wide input method. But the coolest thing is that system-wide input method remains on ASCII, so that it's only VIM, who is involved in this magic. This option works for me very reliable across all my unixes, windows boxes, via SSH, remote desktops, from the collegue computer, which even don't have russian input method installed, ... And of course, if I leave insert mode and go to normal, all commands are still works as usual - you can <C-F>, <C-B>, hjkl etc just normally in normal mode. Coming back in insert mode you will find your 'keymap' is still activated. So, to type ASCII, you need to use CTRL-6 again. Very nice solution in my opinion. Cyril Slobin wrote: > Plea from a Russian Vim user: 'langmap' doesn't work with > encodig=utf8, and who is using 8-bit encodings today? Until now I haven't yet tried 'langmap' option. I seem to be satisfied with 'keymap' for my needs. > Therefore 'keymap' is the only option, but to have two > different keyboard switches (one for Vim and other system-wide) > is a pain. I use 'keymap' all the days in VIM for my russian edits since 2005, and I find it really convenient to have special switch for activating keymap in VIM being different from system-wide switch of input mode - they does different things after all. -- Anton. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
