开发者

Complex Scripts in Vim and gVim

开发者 https://www.devze.com 2023-01-17 02:00 出处:网络
I am learning Vim, and it is great. But the problem with Vim and gVim is that it doesn\'t support any complex scripts like Devanāgarī; it is not rendered properly. See the screenshots below:

I am learning Vim, and it is great. But the problem with Vim and gVim is that it doesn't support any complex scripts like Devanāgarī; it is not rendered properly. See the screenshots below:

Rendering in Vim:

Complex Scripts in Vim and gVim

Correct Rendering (in gEdit, Emacs, KWrite):

Complex Scripts in Vim and gVim

Is there any way to make Vim or gVim support c开发者_Python百科omplex scripts? This affects all Indic scripts. I tried changing the font just in case, but it didn't help.


Check:

set fileencoding
set encoding

Also check again the font. Not all font support everything.


Change the font in vim to the default font in gEdit (or whatever editor you were using in screenshot #2). Is the rendering incorrect with the same fonts?


Vim in gnome-terminal seems to be correct as it uses the same routines for rendering as gedit does (default Ubuntu 10.04).


Check the value of the iminsert option. Specifically, try setting

:set iminsert=2
0

精彩评论

暂无评论...
验证码 换一张
取 消