Answer the question
In order to leave comments, you need to log in
Cyrillic in vim
Decided to feel vim. I downloaded an executable from vim.org for Windows, installation went smoothly. But here the Cyrillic alphabet is displayed every other time.
This appears when running vim on the command line. When opening files with Cyrillic, the same situation is displayed every other time. What could be the problem here?
Answer the question
In order to leave comments, you need to log in
I understand that "The question was asked more than 3 years ago", but maybe someone will be interested))
Before starting vim in the console, I do
it and then, if problems arise, back to
.vimrc the following settings:
if has( "gui_running" )
...
else
if has( 'win32' )
set encoding=cp1251
set termencoding=cp866
set keymap=russian-jcukenwin
endif
endif
:help keymap
:help enc
:help tenc
I can't tell you for sure, because I installed vim on windows a long time ago, but most likely the problem is in the fonts.
When I was on Windows, I used vim only through cygwin. Install cygwin and you will have vim in the console normal and utf. I used puttycyg as a shell to cygwin, but you can also use urxvt or xterm, they are in sigwin packages.
Do you have MinGW? It is possible that the matter is in it.
Literally six months ago I installed vim and everything was in order, but I just downloaded it and got an identical problem. Googling brought me here.
klen offers a good option, it's much more convenient to use.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question