Use /tmp for the ctags temporary directory if it exists

This commit is contained in:
Kevin MacMartin 2018-07-13 16:06:00 -04:00
parent dedcdca651
commit 20437cec96

View file

@ -1,9 +1,16 @@
let g:easytags_suppress_ctags_warning = 1
"set the temporary directory for ctags
if isdirectory(glob("/tmp"))
let $TMPDIR = '/tmp'
endif
"put general tags in ~/.vim/tags
if filereadable(glob("~/.vim/tags"))
let g:easytags_file = '~/.vim/tags'
endif
"put filetype-specific tags in ~/.vim/tags_by_filetype/
if isdirectory(glob("~/.vim/tags_by_filetype"))
let g:easytags_by_filetype = '~/.vim/tags_by_filetype'
endif