How to make vim display unicode

Posted by Yitzchak on Super User See other posts from Super User or by Yitzchak
Published on 2012-04-05T14:43:18Z Indexed on 2012/04/05 23:33 UTC
Read the original article Hit count: 166

Filed under:
|
|

I am trying to work with a utf-8 encoded xml file in vim 7.3 running on ubuntu. ASCII characters display normally but vim gives me gibberish instead of the unicode characters. After trying the following, I've reached the limits of my knowledge:

1) Checked that unicode was enabled by running set termencoding?. Output was termencoding=utf-8.
2) I installed the script from here (vim.org/scripts)
3) moved my ~/.vimrc file into ~/.vim
4) moved it back into ~
5) followed the instructions in the accepted answer to this question.

Is there some other variable I'm supposed to set? I know my system has the fonts I need.


Update:
Issue seems to be limited to html files for some reason.

© Super User or respective owner

Related posts about vim

Related posts about unicode