General: move files to cleanup
[marnav.git] / .vimrc.local
blob7cd6d9e5f6c6fc1434d988dbb337499769dcbf1f
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> :py3f /usr/share/vim/addons/syntax/clang-format-10.py<CR>
8 imap <C-f> <ESC>:py3f /usr/share/vim/addons/syntax/clang-format-10.py<CR>i
9 map <leader>fm ggVG :py3f /usr/share/vim/addons/syntax/clang-format-10.py<CR>
11 " grepping
12 map <F4> :grep -Ernw --include=*.c* --include=*.h* <cword> src include test examples <Bar> cw<CR>
14 " tags
15 set tags+=.ctags/tags,build/tags
17 " path
18 set path+=**
20 " cctree command
21 command! CTL silent CCTreeLoadDB build/cscope.out
23 " youcompleteme
24 let g:ycm_autoclose_preview_window_after_completion=1
25 let g:ycm_autoclose_preview_window_after_insertion=1
26 let g:ycm_confirm_extra_conf=0
27 let g:syntastic_always_populate_loc_list = 1
28 let g:syntastic_check_on_open=1
29 let g:syntastic_enable_signs=1
30 let g:ycm_clangd_uses_ycmd_caching=0
31 let g:ycm_global_ycm_extra_conf = '~/.vim/bundle/YouCompleteMe/third_party/ycmd/.ycm_extra_conf.py'
32 let g:ycm_clangdbinary_path = exepath("clangd")
34 " gutentatgs
35 let g:gutentags_enabled = 1
36 let g:gutentags_modules = ['ctags'] "['ctags', 'cscope']
37 let g:gutentags_project_root = ['.git']
38 let g:gutentags_add_default_project_roots = 0
39 let g:gutentags_ctags_extra_args = [
40         \'--c++-kinds=+p',
41         \'--tag-relative=yes',
42         \'--fields=+ailmnS'
43         \]
44 let g:gutentags_generate_on_new = 1
45 let g:gutentags_generate_on_missing = 1
46 let g:gutentags_generate_on_write = 1
47 let g:gutentags_generate_on_empty_buffer = 1
48 let g:gutentags_ctags_exclude = [
49         \'build/**',
50         \'extern/**',
51         \'cmake/**',
52         \'bin/**',
53         \'.git/**',
54         \'.ctags/**',
55         \'CMakeLists.txt',
56         \'tags',
57         \'*cscope*',
58         \'*.cmake',
59         \'*.md',
60         \'*.tar.gz',
61         \'*.in'
62         \'*.py'
63         \]
64 let g:gutentags_auto_add_cscope = 1
65 let g:gutentags_cscope_build_inverted_index = 1
66 let g:gutentags_cache_dir = fnamemodify(resolve(expand('<sfile>:p')), ':h') .'/.ctags'
67 let g:gutentags_ctags_tagfile = fnamemodify(resolve(expand('<sfile>:p')), ':h') .'/.ctags/tags'
68 let g:gutentags_scopefile = fnamemodify(resolve(expand('<sfile>:p')), ':h') .'/.ctags/cscope.out'