4

I am trying to configure gvim font on linux in .vimrc but it produces strange results. To make gvim use "Liberation Mono" I added set guifont=LiberationMono: h12. It gets applied but does not recognize :h12 option and output:

Error detected while processing /home/tastyminerals/.vimrc:
line   44:
E518: Unknown option: h12

But I am ok with the result since the font gets applied. enter image description here

However when I correct the line to set guifont=LiberationMono:h12 gvim does not complain but the font gets changed to this:

enter image description here

This is not "Liberation Mono" of course, this thing happens with any other font I try to use. Why does the font get changed to some strange monospaced variant? How can I configure the font correctly?

minerals
  • 6,090
  • 17
  • 62
  • 107

1 Answers1

8

I managed to resolve the issue by correcting the font setting in ~/.vimrc

set guifont=LiberationMono\ 12

enter image description here

minerals
  • 6,090
  • 17
  • 62
  • 107