Contents
- 1 How to view UTF-8 characters in Vim or gVim?
- 2 Which is the best font to use in Vim?
- 3 Can a non monospaced font be used in gVim?
- 4 What to do when characters dont show up in Vim?
- 5 What happens when a file is read in Vim?
- 6 How to Insert Unicode character you + 2611 in Vim?
- 7 Is it possible to run Vim in Terminal Mode?
How to view UTF-8 characters in Vim or gVim?
I had the problem that gvim didn’t display all unicode characters (but only a subset, including the umlauts and accented characters), while :set guifont? was empty; see my question. After reading here, setting the guifont to a sensible value fixed it for me. However, I don’t need characters beyond 2 bytes.
Which is the best font to use in Vim?
The above NSimsun font works for Chinese, The problem is I don’t know how they got the font name to work with VIM, Courier New is mentioned as Courier_New also NSimsun is nowhere in the font directory. The font I want to use is Latha But, I don’t know how to use it in _vimrc File. set guifontwide=latha:h12 or set guifontwide=Latha:h12 doesn’t work.
Is there a way to fix Vim 7.3.46?
Using VIM 7.3.46 on windows 7 64 bit, with set guifont=Monaco:h10 in _vimrc Is there a way to fix this? Update: I’ve googled around and found set guifontwide acts as second fallback for regional languages.
Can a non monospaced font be used in gVim?
On Microsoft Windows, gvim wouldn’t allow you to select non-monospaced fonts. Unfortunately Latha is a non-monospaced font. There is a hack way to make it happen: Using FontForge (you can download Windows binary from http://www.geocities.jp/meir000/fontforge/) to edit the Latha.ttf and mark it as a monospaced font. Doing like this:
What to do when characters dont show up in Vim?
So spaces are the only thing that doesn’t show up. If you absolutely need spaces to be marked as well, you’ll need to try something less nice. Something like Will replace all spaces with a block character.
How to set character encoding for a file in Vim-Stack Overflow?
I’m using :set fileencoding=utf-8 and the file is saved correctly, but the next time I open it, I get garbled characters and :set fileencoding? says the option isn’t set. From the docs I understand that I shouldn’t touch the encoding option.
What happens when a file is read in Vim?
When a file is read, Vim tries to use the first mentioned character encoding. If an error is detected, the next one in the list is tried. When an encoding is found that works, fileencoding is set to it. You best put these settings in your .vimrc file so that you don’t have to input them manually each time you start vim.
How to Insert Unicode character you + 2611 in Vim?
There’s no any problem when I tried to insert other kind of characters like □ (U+a1f5). It seems like Vim stopped its parsing immediately after 26 (which represents character ‘&’) has been read .
Can a latin1 encoding be used in Vim?
Please Help!!! In order to process Unicode characters, Vim must use an ‘encoding’ that is able to represent those characters. With a value of latin1, the mentioned character cannot be encoded (this 8-bit encoding only includes ASCII and several Western European characters, see here ).
Is it possible to run Vim in Terminal Mode?
Of course, I have no problems running under GVim: can type any characters, and my patched Consolas for Powerline works just fine. The problems start when I try to run Vim in terminal mode. I use ConEmu, a feature-rich terminal emulator for Windows. It claims to officially support Unicode out of the box.