From 5e58c9fb22ec769b1055b4331ec417fb10700391 Mon Sep 17 00:00:00 2001 From: "Dustin C. Hatch" Date: Tue, 20 Dec 2011 20:16:11 -0600 Subject: [PATCH] Fix some Windows compatibility issues --- plugin/00-dustin.vim | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/plugin/00-dustin.vim b/plugin/00-dustin.vim index 2067e70..63a0e9f 100644 --- a/plugin/00-dustin.vim +++ b/plugin/00-dustin.vim @@ -18,8 +18,6 @@ if has('gui_running') colorscheme wombat endif -" Nice font and size (escape spaces) (GUI only) -set guifont=Luxi\ Mono\ 10 " Set GUI size for side-by-side editing autocmd GUIEnter * set lines=60 columns=169 @@ -27,3 +25,16 @@ autocmd GUIEnter * set lines=60 columns=169 inoremap jj " Shift+Tab to un-indent inoremap + +" Platform specific stuff +if has('win32') + " Windows has a different font naming pattern + " Also, Consolas is more widely available than Luxi + set guifont=Consolas:h9:cANSI + " The default directory setting uses C:\tmp and C:\temp, neither of which + " are valid on Windows 6.0 and later + set directory=.,$TEMP, +elseif has('unix') + " Nice font and size (escape spaces) (GUI only) + set guifont=Luxi\ Mono\ 10 +endif