2015-03-26 17:09:26 +00:00
|
|
|
|
" Display filename at bottom of window
|
|
|
|
|
set ls=2
|
|
|
|
|
"enable line numbers
|
|
|
|
|
set nu
|
|
|
|
|
|
|
|
|
|
" Highlights the line the cursor is on
|
|
|
|
|
set cursorline
|
|
|
|
|
:hi CursorLine cterm=NONE ctermbg=darkred guibg=darkred guifg=white
|
|
|
|
|
|
|
|
|
|
" Syntax Hightlighting
|
|
|
|
|
syntax on
|
|
|
|
|
|
|
|
|
|
" Enable search highlighting
|
|
|
|
|
set hls
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
" Color Schemes {{
|
|
|
|
|
" Set theme based on $VIM_COLOR variable
|
|
|
|
|
try
|
|
|
|
|
if !empty($VIM_COLOR)
|
|
|
|
|
colorscheme $VIM_COLOR
|
|
|
|
|
else
|
2015-11-10 18:26:15 +00:00
|
|
|
|
if has("gui_running") || exists("neovim_dot_app")
|
2015-03-26 17:09:26 +00:00
|
|
|
|
colorscheme wombat256mod
|
|
|
|
|
else
|
|
|
|
|
colorscheme vividchalk
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
catch /^Vim\%((\a\+)\)\=:E185/
|
|
|
|
|
" Colorschemes not installed yet
|
|
|
|
|
" This happens when first installing bundles
|
|
|
|
|
colorscheme default
|
|
|
|
|
endtry
|
|
|
|
|
|
|
|
|
|
" Set Airline theme
|
|
|
|
|
if g:colors_name == 'github'
|
|
|
|
|
let g:airline_theme = 'solarized'
|
|
|
|
|
endif
|
|
|
|
|
" }}
|
|
|
|
|
|
|
|
|
|
" Set gui fonts {{
|
2015-11-10 18:26:15 +00:00
|
|
|
|
if has("gui_running") || exists("neovim_dot_app")
|
2015-03-26 17:09:26 +00:00
|
|
|
|
if has("gui_win32")
|
|
|
|
|
set guifont=Consolas:h10:b
|
2015-11-10 18:26:15 +00:00
|
|
|
|
elseif IsMac() && (has("gui_macvim") || exists("neovim_dot_app"))
|
2015-03-26 17:09:26 +00:00
|
|
|
|
try
|
2015-11-10 18:26:15 +00:00
|
|
|
|
set guifont=DejaVu\ Sans\ Mono\ for\ Powerline:h11
|
2015-03-26 17:09:26 +00:00
|
|
|
|
catch
|
|
|
|
|
" Failed to set font
|
|
|
|
|
endtry
|
|
|
|
|
endif
|
|
|
|
|
endif
|
|
|
|
|
" }}
|
|
|
|
|
|
|
|
|
|
" Set xterm and screen/tmux's title {{
|
|
|
|
|
set titlestring=vim\ %{expand(\"%t\")}
|
|
|
|
|
if &term =~ "^screen"
|
|
|
|
|
" pretend this is xterm. it probably is anyway, but if term is left as
|
|
|
|
|
" `screen`, vim doesn't understand ctrl-arrow.
|
|
|
|
|
if &term == "screen-256color"
|
|
|
|
|
set term=xterm-256color
|
|
|
|
|
else
|
|
|
|
|
set term=xterm
|
|
|
|
|
endif
|
|
|
|
|
|
|
|
|
|
" gotta set these *last*, since `set term` resets everything
|
|
|
|
|
set t_ts=k
|
|
|
|
|
set t_fs=\
|
|
|
|
|
set t_ut=
|
|
|
|
|
endif
|
2015-03-27 00:45:03 +00:00
|
|
|
|
set notitle
|
|
|
|
|
" set title
|
2015-03-26 17:09:26 +00:00
|
|
|
|
" }}
|