From 9df976d32af826a78a79a368ac333d00407ca9fc Mon Sep 17 00:00:00 2001 From: Kolan Sh Date: Thu, 7 Nov 2019 16:26:42 +0300 Subject: [PATCH] .vimrc: ctags&cscope: read also tags and cscope.out. --- .vimrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.vimrc b/.vimrc index 7ed226a..94b2a3b 100644 --- a/.vimrc +++ b/.vimrc @@ -153,7 +153,9 @@ nnoremap :call ToggleMyFontSize() " ctags/cscope let local_tags = ".ctags" +let local_tags2 = "tags" let local_cscope = ".cscope.out" +let local_cscope2 = "cscope.out" let local_path = "/" let current_path = getcwd() " If the current path is a child of $HOME directory, start from $HOME @@ -167,11 +169,17 @@ for path_part in path_parts if filereadable(local_path . local_tags) exe ":set tags+=" . local_path . local_tags endif + if filereadable(local_path . local_tags2) + exe ":set tags+=" . local_path . local_tags2 + endif if filereadable(local_path . local_cscope) exe "cs add" local_path . local_cscope endif + if filereadable(local_path . local_cscope2) + exe "cs add" local_path . local_cscope2 + endif endfor -unlet local_tags local_cscope local_path current_path path_parts +unlet local_tags local_tags2 local_cscope local_cscope2 local_path current_path path_parts map [I:let nr = input("Which one: ")exe "normal " . nr ."[\t"