From 7877b21fd971440c3d00c45e8c4a44374cd72168 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Tue, 4 Nov 2014 13:47:08 +0100 Subject: vimrc update --- .vimrc | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) diff --git a/.vimrc b/.vimrc index 35dfba0..6b091aa 100644 --- a/.vimrc +++ b/.vimrc @@ -4,6 +4,7 @@ set nocompatible " Forget about (N)VI set noerrorbells " No annoying bells set vb t_vb= +set hidden " allow buffer switching without saving " Don't highlight search results " set nohlsearch @@ -171,6 +172,30 @@ nnoremap :TlistToggle augroup c autocmd BufNewFile *.h :0r! mkheader.py -s augroup END +" }}} +" {{{ Always use tabs in Makefiles +autocmd BufEnter ?akefile* set noet ts=8 sw=8 nocindent +" }}} +" {{{ pathogen plugin +execute pathogen#infect() +" }}} +" {{{ settings for bundles installed by pathogen + +" syntastic +let g:syntastic_check_on_wq = 0 +let g:syntastic_auto_loc_list = 1 +let g:syntastic_enable_balloons = 0 +let g:syntastic_c_checkers = [ ] +let g:syntastic_cpp_checkers = [ 'cpplint' ] +let g:syntastic_cpp_cpplint_args = '--verbose=0' +let g:syntastic_mode_map = { "mode": "passive", "active_filetypes": [], "passive_filetypes": [] } +map li :SyntasticCheck + +" NERDTree +autocmd vimenter * if !argc() | NERDTree | endif +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif +map nt :NERDTreeToggle + " }}} " {{{ localvimrc plugin " disable sandbox to allow autocmd -- cgit v1.2.3-54-g00ecf '/cgit.cgi/linux/net-next.git/refs/?id=e2841ea91611622370f66b4dfaa62599e8850d48'>refslogtreecommitdiff
diff options
context:
space:
mode: