Fix easytags tags file and tags_by_filetype by setting the values if the file is readable and the folder is a folder, rather than the negative of that

This commit is contained in:
Kevin MacMartin 2016-09-02 00:10:39 -04:00
parent a0d8bf806c
commit b078da11e1

View file

@ -47,8 +47,8 @@ scriptencoding utf-8
"EASYTAGS: {{{
let g:easytags_suppress_ctags_warning=1
if !filereadable(glob("~/.vim/tags"))|let g:easytags_file='~/.vim/tags'|endif
if !isdirectory(glob("~/.vim/tags_by_filetype"))|let g:easytags_by_filetype='~/.vim/tags_by_filetype'|endif
if filereadable(glob("~/.vim/tags"))|let g:easytags_file='~/.vim/tags'|endif
if isdirectory(glob("~/.vim/tags_by_filetype"))|let g:easytags_by_filetype='~/.vim/tags_by_filetype'|endif
"prevent automatically generating the tagfile and syntax highlighting tags (default: 0)
if !exists("g:disableautotags")