JaredVogt / vimrc

CONFIG: my vimrc
0 stars 0 forks source link

Check for OS and adjust accordingly #33

Open JaredVogt opened 8 years ago

JaredVogt commented 8 years ago
let os=substitute(system('uname'), '\n', '', '')
if os == 'Darwin' || os == 'Mac'
    set guifont=Inconsolata-dz:h12
    " more...
elseif os == 'Linux'
    set guifont=Inconsolata-dz\ Medium\ 10
    " more...
endif

http://stackoverflow.com/questions/10139972/vim-hasmacunix-or-hasmac-do-not-work