" Less intrusive syntax highlighting.
syn enable
-" Nice GUI colour.
+" Set colours.
if has("gui_running")
- se guifont=DejaVu\ Sans\ Mono\ 10
- " XXX: Sort this out.
- colo darkblue
- hi Cursor guibg=green
- hi LineNr guibg=#303030
- hi MarkLine guibg=#2e2e2e
- hi MarkDot guifg=red guibg=#2e2e2e
- hi MarkSign guifg=lightblue guibg=#2e2e2e
- hi! link SignColumn LineNr
-elseif &t_Co > 16
try
- colo iain
+ if has("win32")
+ se guifont=DejaVu_Sans_Mono:h10:cANSI
+ else
+ se guifont=DejaVu\ Sans\ Mono\ 10
+ endif
catch
endtry
endif
-if has("win32")
- se guifont=DejaVu_Sans_Mono:h10:cANSI
+if has("gui_running") || &t_Co > 16
+ try
+ colo iain
+ catch
+ endtry
endif
-hi! link TabLineSel StatusLine
-hi! link TabLine StatusLineNC
" Ignore whitespace when diffing.
se diffopt=filler,iwhite
let l:termcolour = <SID>Iain_Colour(l:colour)
- exec "highlight StatusLine guifg=white guibg=" . l:colour . " ctermbg=white ctermfg=" . l:termcolour
+ exec "highlight StatusLine guifg=white guibg=" . l:colour . " ctermfg=white ctermbg=" . l:termcolour
endfun
au Display VimEnter * call Highlight_StatusLine("")