David Blume commited on 2021-04-27 19:00:52
Showing 1 changed files, with 10 additions and 2 deletions.
... | ... |
@@ -1,4 +1,4 @@ |
1 |
-" Version 2020-07-08.1 - Use built-in netrw instead of NERDTree |
|
1 |
+" Version 2021-04-27.1 - Prefer local cscope.out database |
|
2 | 2 |
set nocompatible " Use Vim defaults, forget compatibility with vi. |
3 | 3 |
set bs=2 " allow backspacing over everything in insert mode |
4 | 4 |
set wildmenu " Allows command-line completion with tab |
... | ... |
@@ -304,7 +304,15 @@ endif |
304 | 304 |
if has("cscope") |
305 | 305 |
set cscopetag " Use both cscope and ctag for 'ctrl-]' |
306 | 306 |
set csto=1 " 0=cscope first; 1=ctags first |
307 |
- set cscopeverbose |
|
307 |
+ set nocsverb |
|
308 |
+ " add any database in current directory |
|
309 |
+ if filereadable("cscope.out") |
|
310 |
+ cs add cscope.out |
|
311 |
+ " else add database pointed to by environment |
|
312 |
+ elseif $CSCOPE_DB != "" |
|
313 |
+ cs add $CSCOPE_DB |
|
314 |
+ endif |
|
315 |
+ set csverb |
|
308 | 316 |
endif |
309 | 317 |
|
310 | 318 |
" I use Roboto Mono from https://github.com/powerline/fonts |
311 | 319 |