-
Notifications
You must be signed in to change notification settings - Fork 1
/
.vimprj
43 lines (34 loc) · 1.08 KB
/
.vimprj
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
"
" Project configuration
"
" Build: command to be run
"set makeprg=scons\ all
" each project can define its headers extension (.h or .hpp)
" let g:header_ext='hpp'
" let g:source_ext='cpp'
" let g:test_ext='test'
" Tags and CScope: used autocomplete and code search
"set tags =.vimprj.tag
"set tags+=/usr/local/include/boost/.tag
"cscope add .vimprj.cscope
"cscope add /usr/local/etc/ctags/qt/5.7.cscope
" Paths: file search
"set path =include
"set path+=modules
"set path+=.,/usr/local/include,/usr/include
" Man: documentation
"let $MANPATH='doc/man:'
" Autocmds: actions to be done in background
"let g:myvimprj = 'true' " this line is mandatory if you add commands
"augroup myvimprj
"
" Tags creation
"
" autocmd BufWritePost * :Start! ctags-exuberant -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ --tag-relative=no -f .vimprj.tag include/
"
" Add cscope db
"
" autocmd BufWritePost * :Start! cscope -b -R -f .vimprj.cscope -s ./
" autocmd BufWritePost * :cs kill .vimprj.cscope
" autocmd BufWritePost * :cs add .vimprj.cscope
"augroup END