From b078da11e18408db872d37d0a0c9ee6b765eab07 Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Fri, 2 Sep 2016 00:10:39 -0400 Subject: [PATCH] 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 --- vim/config/plugins.vim | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vim/config/plugins.vim b/vim/config/plugins.vim index a1e0bf2..0451c9f 100644 --- a/vim/config/plugins.vim +++ b/vim/config/plugins.vim @@ -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")