4

I'm trying to open and edit files with Mongolian text, written in Mongolian Cyrillic. In the cmd terminal and in powershell terminal if I choose Consolas font, everything is ok with Mongolian Cyrillic, letters Өө and Үү are displayed correctly. If I open any Mongolian files in terminal Vim or gVim window, it shows them as ? sign. I have such an option:

:set guifont?
  guifont=Consolas:h9:cRUSSIAN

I added to _vimrc:

set encoding=utf8
set termencoding=utf8
set guifont=Consolas:h11:cRUSSIAN          "to get proper font for Cyrillic
set fileencodings=utf8,cp1251,cp866,koi8r
"to get English menu instead of broken Russian
set langmenu=en_US                        
let $LANG = 'en_US'
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim

This code lets me see files properly. But I still can't type either search this letters straight in Vim. While typing, gVim turns them to ?-s.

Please, give me some advise, what should I do to fix that problem?

  • 3
    Try to enable directx-based rendering (for gVim only), for example: set renderoptions=type:directx,gamma:1.5,contrast:0.5,geom:1,renmode:5,taamode:1,level:0.5 (<- all in one line, no spaces) Also, use :set guifont=* and try different fonts by selecting them from a menu (gVim-only, too). – VanLaser Sep 23 '16 at 11:24
  • Thank you very much! It's really useful options, though I closed my problem another way. Btw, you wrote about that yet: reddit.com/r/vim/comments/2ex6kh/set_renderoptions_windows – kusrabs Sep 27 '16 at 18:59
1

Actually, the decision was to update gVim to 8.0 version, released just a few weeks ago. Then such settings were useful as well:

set encoding=utf8
set termencoding=utf8
set guifont=Consolas:h11:cRUSSIAN          "to get proper font for Cyrillic
set fileencodings=utf8,cp1251,cp866,koi8r
"to get English menu instead of broken Russian
set langmenu=en_US                        
let $LANG = 'en_US'
source $VIMRUNTIME/delmenu.vim
source $VIMRUNTIME/menu.vim

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.