From 7a967fc3c4085a959a1ef8b2a1ee462adc3d6a25 Mon Sep 17 00:00:00 2001 From: Mathieu Maret Date: Thu, 9 Jul 2015 13:39:09 +0200 Subject: [PATCH] [vim] look for tags in some default dir Otherwise you neede to relaunch vim so autotags see them --- .vim/plugin/cscope_plus.vim | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.vim/plugin/cscope_plus.vim b/.vim/plugin/cscope_plus.vim index 602a795..92bd738 100644 --- a/.vim/plugin/cscope_plus.vim +++ b/.vim/plugin/cscope_plus.vim @@ -40,6 +40,11 @@ if has("cscope") map :CtagsKernelBuild 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