[vim] look for tags in some default dir

Otherwise you neede to relaunch vim so autotags see them
This commit is contained in:
Mathieu Maret 2015-07-09 13:39:09 +02:00
parent 6655617a44
commit 7a967fc3c4
1 changed files with 5 additions and 0 deletions

View File

@ -40,6 +40,11 @@ if has("cscope")
map <M-F8> :CtagsKernelBuild<CR><CR>
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)
if !isdirectory(a:pathname) || a:pathname == $HOME || a:pathname == '/'
return