We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent da0701d commit 1548f09Copy full SHA for 1548f09
_vimrc
@@ -11,7 +11,18 @@ set hls
11
12
"set foldlevel=99
13
14
-set tags=./tags;,./gotags;,./.tags;,./.gotags;
+set tags=tags;/
15
+
16
+function! LoadCscope()
17
+ let db = findfile("cscope.out", ".;")
18
+ if (!empty(db))
19
+ let path = strpart(db, 0, match(db, "/cscope.out$"))
20
+ set nocscopeverbose " suppress 'duplicate connection' error
21
+ exe "cs add " . db . " " . path
22
+ set cscopeverbose
23
+ endif
24
+endfunction
25
+au BufEnter /* call LoadCscope()
26
27
nmap <F8> :TagbarToggle<CR>
28
0 commit comments