summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHugues Hiegel <hugues@hiegel.fr>2008-07-04 10:22:25 +0200
committerHugues Hiegel <hugues@hiegel.fr>2008-07-04 10:22:25 +0200
commit34317b17cd3408d89684816da34d744c04256102 (patch)
treed0f61e9929ff1e511f0c9d420d68279cd4fe5b1f
parentdbb0e258ec46e70014819cb67e20800f2d3f413f (diff)
Opens tags file in the current dir instead of the dir which is never set on my environment ;o)
-rw-r--r--vimrc12
1 files changed, 6 insertions, 6 deletions
diff --git a/vimrc b/vimrc
index fc7799f..fe746ed 100644
--- a/vimrc
+++ b/vimrc
@@ -56,13 +56,13 @@ map <F9> zA
map <C-B> :bN<CR>
" 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 <C-]> :cs find g <C-R>=expand("<cword>")<CR><CR> " find global definition
map <C-[> :cs find c <C-R>=expand("<cword>")<CR><CR> " find callers of function under cursor
@@ -71,7 +71,7 @@ elseif has("cscope")
map <C-f> :cs find f <C-R>=expand("<cword>")<CR><CR> " find file under cursor
map <C-i> :cs find i <C-R>=expand("<cword>")<CR><CR> " find files including file under cursor
map <C-i> :cs find I %<CR> " find files including current file
- cs add $ROOT/cscope.out $ROOT
+ cs add cscope.out
endif
endif