You are not logged in.

#1 2016-03-24 06:52:53

iwaka
Member
Registered: 2016-03-24
Posts: 3

Font in vim won't change from terminal font

I'm using urxvt with a Chinese-friendly font, because, well, I need decent Chinese fonts in my terminal smile
However, I would like to use DejaVu Sans Mono in vim, and I have the following line in my .vimrc:

set gfn=DejaVu\ Sans\ Mono\ 12

This works in gvim absolutely fine, but vim still uses the terminal font, even though when I make an inquiry with :set gfn? it claims to be using DejaVu. Changing to another font, like Inconsolata, doesn't make any visible difference, but again vim registers the change and claims to be using the new font, when it actually isn't.

Is urxvt overwriting vim's settings? How can I fix this?

Thanks.

Offline

#2 2016-03-24 09:21:40

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 226
Website

Re: Font in vim won't change from terminal font

The gfn option only changes the font for gvim, it is ignored for vim in a terminal. AFAIK it is not possible for vim to  use a different font than the terminal it runs in.


My System: Dell XPS 13 | i7-7560U | 16GB RAM | 512GB SSD | FHD Screen | Arch Linux
My Workstation/Server: Supermicro X11SSZ-F | Xeon E3-1245 v6 | 64GB RAM | 1TB SSD Raid 1 + 6TB HDD ZFS Raid Z1 | Proxmox VE
My Stuff at Github: github
My Homepage: Seiichiros HP

Offline

#3 2016-03-24 10:50:35

Gordon
Member
From: Scotland
Registered: 2012-06-25
Posts: 19

Re: Font in vim won't change from terminal font

Change it in your terminal preferences. It does change in xterm.

Offline

Board footer

Powered by FluxBB