Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I installed ubuntu 12.04 lts yesterday, and didn't change any system setting, but gvim can't get correct font display, there's too much space between character.

Screeshot :

The .gvimrc file:

share|improve this question
What does echo $LANG say? – jippie Apr 28 '12 at 21:18
@jippie It says zh_CN.UTF-8 – w.core Apr 29 '12 at 17:50
Hmm ... can't reproduce it that way, but it is worth to try the following LANG=C gvim or LANG=en_US.UTF-8 gvim. If that works, at least we know what to look for. Take a look at the Joar's answer too, I was able to reproduce his method. – jippie Apr 29 '12 at 18:17

Try another font.

In gvim, you can change the font using the Edit menu, Select Font. An alternative is to enter the command:

:set guifont=*

Once you have a font you like, you want to make it the default in the future. Do

:set guifont?

and Vim will display something like


Make a note of this string. Now put a line in your vimrc to set guifont to this value, like this:

if has('gui_running')
  set guifont=Lucida_Console:h11

Note: If there is a space in the text printed, such as

guifont=Monospace 10

it will be necessary to escape the space

set guifont=Monospace\ 10
share|improve this answer
My font by default is Monospace 10, which looks normal. I'm curious why gvim on grick's system looks different. – jippie Apr 29 '12 at 7:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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