2017-11-15 15:11:07 -05:00
|
|
|
"""Weird tmux settings
|
2017-11-19 12:31:30 -05:00
|
|
|
let &t_Co=256
|
2017-11-15 15:11:07 -05:00
|
|
|
|
|
|
|
|
2017-10-26 01:39:39 -04:00
|
|
|
""" Syntastic
|
|
|
|
" Recommended settings
|
|
|
|
set statusline+=%#warning#
|
2017-11-12 17:01:19 -05:00
|
|
|
set statusline+=%{SyntasticStatuslineFlag()}
|
2017-10-26 01:39:39 -04:00
|
|
|
set statusline+=%*
|
|
|
|
|
|
|
|
let g:syntastic_always_populate_loc_list = 1
|
|
|
|
let g:syntastic_auto_loc_list = 1
|
|
|
|
let g:syntastic_check_on_open = 1
|
2017-11-03 00:06:37 -04:00
|
|
|
let g:syntastic_check_on_wq = 0
|
2017-10-26 01:39:39 -04:00
|
|
|
|
2017-11-12 17:01:19 -05:00
|
|
|
function! SyntasticCheckHook(errors)
|
|
|
|
if !empty(a:errors)
|
|
|
|
let g:syntastic_loc_list_height = min([len(a:errors), 10])
|
|
|
|
endif
|
|
|
|
endfunction
|
|
|
|
|
2017-10-26 01:39:39 -04:00
|
|
|
|
|
|
|
""" General Settings
|
|
|
|
" Set tabs to 4 spaces
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
|
|
|
set expandtab
|
|
|
|
|
|
|
|
" Remember location in file
|
|
|
|
if has("autocmd")
|
|
|
|
au BufReadPost * if line("'\"") > 1 && line("'\"") <= line("$") | exe "normal! g'\"" | endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
" Line numbers
|
|
|
|
set number
|
|
|
|
set relativenumber
|
2017-10-24 15:28:32 -04:00
|
|
|
|
2017-11-12 17:01:19 -05:00
|
|
|
" Autoindent
|
|
|
|
set autoindent
|
|
|
|
|
2017-11-15 15:11:07 -05:00
|
|
|
" Colors
|
2017-10-26 01:39:39 -04:00
|
|
|
syntax enable
|
2017-11-15 15:11:07 -05:00
|
|
|
set background=dark
|
2017-11-18 22:48:39 -05:00
|
|
|
colorscheme gotham256
|
2017-10-26 01:39:39 -04:00
|
|
|
filetype plugin on
|
|
|
|
|
|
|
|
" Fuzzy Finding
|
|
|
|
set path+=**
|
|
|
|
set wildmenu
|
|
|
|
|
2017-11-12 17:01:19 -05:00
|
|
|
" Window stuff
|
|
|
|
map <C-h> <C-w>h
|
|
|
|
map <C-j> <C-w>j
|
|
|
|
map <C-k> <C-w>k
|
|
|
|
map <C-l> <C-w>l
|