" This file is automatically sourced by neovim-qt
" GuiFont can only be called in this file, since it is sourced *after* the shim plugin has been loaded.

" Set font, accounting for DPI. Desktop has 95 (on 1920x1200), yuki has 96
if has("nvim")
    if system("xdpyinfo | perl -ne '/resolution.*x([0-9]+)/ && print $1;'") < 96
        GuiFont Droid Sans Mono:h11
    else
        GuiFont Droid Sans Mono:h14
    endif
else
    if system("xdpyinfo | perl -ne '/resolution.*x([0-9]+)/ && print $1;'") < 96
        set guifont=Droid\ Sans\ Mono\ 11
    else
        set guifont=Droid\ Sans\ Mono\ 14
    endif
fi


" This file is automatically sourced by neovim-qt
" GuiFont can only be called in this file, since it is sourced *after* the shim plugin has been loaded.

" Set font to whatever Konsole uses
" We can't do this heuristically because Shuriken and Yuki have the same DPI
if has("nvim")
    let s:cmd = "GuiFont Droid Sans Mono for Powerline:h"
else
    let s:cmd = "set guifont=Droid\ Sans\ Mono\ for\ Powerline\ "
endif

let s:fontsize = system("awk -F, '/^Font=/{print $2}' ~/.local/share/konsole/*.profile | head -n1")
execute s:cmd . s:fontsize


Use the same font size as Konsole
Use the same font size as Konsole

rdnetto/vimrc