summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2014-11-04 13:47:08 +0100
committerTobias Klauser <tklauser@distanz.ch>2014-11-04 13:47:08 +0100
commit7877b21fd971440c3d00c45e8c4a44374cd72168 (patch)
tree72eb1c917ab75a20001cfb94ab9a4ede5715e350
parent31fe4b79c0af640859e20ede70c6fcabca882905 (diff)
vimrc update
-rw-r--r--.vimrc25
1 files changed, 25 insertions, 0 deletions
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
@@ -172,6 +173,30 @@ augroup c
autocmd BufNewFile *.h :0r! mkheader.py -s <afile>
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 <Leader>li :SyntasticCheck<CR>
+
+" NERDTree
+autocmd vimenter * if !argc() | NERDTree | endif
+autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTreeType") && b:NERDTreeType == "primary") | q | endif
+map <Leader>nt :NERDTreeToggle<CR>
+
+" }}}
" {{{ localvimrc plugin
" disable sandbox to allow autocmd
let g:localvimrc_sandbox=0