I use consolas font in Vim, but when i open it in Gvim, it appears widened 
(because consolas font is monospaced).
So i want to use diffrent font for Gvim and diffrent for Vim.

This is what i placed, but it doesn't work

if has('gui_running')
    set guifont=Source\ Code\ Pro\ 10
    set guifont=Source\ Code\ Pro:h10:cANSI
else
    set guifont=Consolas\ 10
    set guifont=Consolas:h10:cANSI
endif

Fonts work (loaded) when standalone.

I also tried setting font that i want only in GVim, in .gvimrc  in $HOME, i 
tried disabling setting fonts via .vimrc and it loads that font in GVim, 
but when i set font i want in .vimrc (so, .gvimrc and .vimrc are separate, 
instead in one function like above) 
but GVim still loads what is in .vimrc and displays  consolas font, making 
it widened...

-- 
-- 
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_use/2778d505-75e6-45ed-8965-57c2952c41ddn%40googlegroups.com.

Reply via email to