Dev: enabled clang builds on travis-ci.
[marnav.git] / .vimrc.local
blob89440d4973bab54974ed2cb28be10aa6a9e932ef
1 " This local vim configuration assumes the build directory be in the root
2 " of the source tree named 'build'
4 " This just my personal preference for normal day-to-day development of this project.
6 " clang-format
7 map <C-f> :pyf /usr/share/vim/addons/syntax/clang-format-3.9.py<CR>
8 imap <C-f> <ESC>:pyf /usr/share/vim/addons/syntax/clang-format-3.9.py<CR>i
9 map <leader>fm ggVG :pyf /usr/share/vim/addons/syntax/clang-format-3.9.py<CR>
11 " grepping
12 map <F4> :grep -Ernw --include=*.c* --include=*.h* <cword> src test <Bar> cw<CR>
14 " tags
15 set tags+=tags,build/tags
17 " cctree command
18 command! CTL silent CCTreeLoadDB build/cscope.out
20 " youcompleteme
21 let g:ycm_autoclose_preview_window_after_completion=1
22 let g:ycm_autoclose_preview_window_after_insertion=1
23 let g:ycm_confirm_extra_conf=0
24 let g:syntastic_always_populate_loc_list = 1
25 let g:syntastic_check_on_open=1
26 let g:syntastic_enable_signs=1