Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Vim doesn't work properly with cyrillic symbols

Tags:

vim

I'm trying to learn vim by its built-in tutorial. It is in russian so all the symbols are cyrillic. The most interesting thing is that vim commands doesn't seem to work with them. For example, I'm trying dw in normal mode with russign symbols, it deletes sometimes 1, sometimes 2 symbols within the word. It doesn't delete the whole word. But it works fine with latin letters. What's the reason?

like image 290
Sergey Avatar asked Aug 02 '11 08:08

Sergey


1 Answers

Sergey, the best option is not to use cyrillic symbols in normal mode at all. Since we are using vim mainly for coding, I guess the only case where you can feel uncomfortable with it is editing comments.

This is the best option also because actually the answer to you question depends on vim version. Here it is a russian article on this issue. I can add a comment to this article - map/langmap solutions doesn't work properly (as for me). So in this I'm agree with the author.

like image 96
shabunc Avatar answered Sep 19 '22 11:09

shabunc