Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

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 :

http://i.imgur.com/rm9hF.png

The .gvimrc file:

http://i.imgur.com/LngNy.png

share|improve this question
1  
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

1 Answer 1

Try another font.

http://vim.wikia.com/wiki/Change_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

guifont=Lucida_Console:h11

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
endif

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

 
discard

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.