[vim] look for tags in some default dir
Otherwise you neede to relaunch vim so autotags see them
This commit is contained in:
parent
6655617a44
commit
7a967fc3c4
@ -40,6 +40,11 @@ if has("cscope")
|
|||||||
map <M-F8> :CtagsKernelBuild<CR><CR>
|
map <M-F8> :CtagsKernelBuild<CR><CR>
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
set tags+=./tags " in file directory
|
||||||
|
set tags+=tags " in current directory
|
||||||
|
"for when programming in build dir
|
||||||
|
set tags+=../tags
|
||||||
|
|
||||||
function! GetLocalCscopeDb(pathname)
|
function! GetLocalCscopeDb(pathname)
|
||||||
if !isdirectory(a:pathname) || a:pathname == $HOME || a:pathname == '/'
|
if !isdirectory(a:pathname) || a:pathname == $HOME || a:pathname == '/'
|
||||||
return
|
return
|
||||||
|
Loading…
Reference in New Issue
Block a user