dotfiles/vimrc

58 lines
1.0 KiB
VimL

"""Weird tmux settings
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
""" Syntastic
" Recommended settings
set statusline+=%#warning#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*
let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 1
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
function! SyntasticCheckHook(errors)
if !empty(a:errors)
let g:syntastic_loc_list_height = min([len(a:errors), 10])
endif
endfunction
""" 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
" Autoindent
set autoindent
" Colors
syntax enable
set background=dark
colorscheme solarized8
filetype plugin on
set termguicolors
" Fuzzy Finding
set path+=**
set wildmenu
" 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