mirror of
https://github.com/tpope/vim-sensible.git
synced 2025-11-11 12:33:47 -05:00
Don't override 'tags' without "./tags"
References: https://github.com/tpope/vim-sensible/issues/94
This commit is contained in:
@@ -58,7 +58,9 @@ if v:version > 703 || v:version == 703 && has("patch541")
|
|||||||
set formatoptions+=j " Delete comment character when joining commented lines
|
set formatoptions+=j " Delete comment character when joining commented lines
|
||||||
endif
|
endif
|
||||||
|
|
||||||
if has('path_extra')
|
" Replace the check for a tags file in the parent directory of the current
|
||||||
|
" file with a check in every ancestor directory.
|
||||||
|
if has('path_extra') && (',' . &g:tags . ',') =~# ',\./tags,'
|
||||||
setglobal tags-=./tags tags-=./tags; tags^=./tags;
|
setglobal tags-=./tags tags-=./tags; tags^=./tags;
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user