From 34317b17cd3408d89684816da34d744c04256102 Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Fri, 4 Jul 2008 10:22:25 +0200 Subject: Opens tags file in the current dir instead of the dir which is never set on my environment ;o) --- vimrc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vimrc b/vimrc index fc7799f..fe746ed 100644 --- a/vimrc +++ b/vimrc @@ -56,13 +56,13 @@ map zA map :bN " Load local cscope db if exists -if filereadable( expand("$PWD/tags") ) +if filereadable( expand("tags") ) set tags=tags -elseif filereadable( expand("$ROOT/ctags.out") ) - set tags=$ROOT/ctags.out +elseif filereadable( expand("ctags.out") ) + set tags=ctags.out elseif has("cscope") - if filereadable( expand("$ROOT/cscope.out") ) - set cst + if filereadable( expand("cscope.out") ) + set cscopetag " cscope macros map :cs find g =expand("") " find global definition map :cs find c =expand("") " find callers of function under cursor @@ -71,7 +71,7 @@ elseif has("cscope") map :cs find f =expand("") " find file under cursor map :cs find i =expand("") " find files including file under cursor map :cs find I % " find files including current file - cs add $ROOT/cscope.out $ROOT + cs add cscope.out endif endif -- cgit v1.2.3