S
S
skim17762011-08-01 22:23:54
vim
skim1776, 2011-08-01 22:23:54

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.

image
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

5 answer(s)
S
SkyRZN, 2011-08-01
@skim1776

Start the GUI version.

V
vireulgr, 2015-09-07
@vireulgr

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

Switching languages ​​is done by pressing Ctrl-6. See Vim help for details
:help keymap
:help enc
:help tenc

I used console Vim under Windows, and found something else
OS Win 7 x64, Vim 7.4.

S
sergeyvolobuev, 2011-08-01
@sergeyvolobuev

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.

K
klen, 2011-08-02
@klen

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.

C
chuwy, 2011-08-03
@chuwy

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 question

Ask a Question

731 491 924 answers to any question