From 20437cec96307f681d3e694d3f805225cb071dcb Mon Sep 17 00:00:00 2001 From: Kevin MacMartin Date: Fri, 13 Jul 2018 16:06:00 -0400 Subject: [PATCH] Use /tmp for the ctags temporary directory if it exists --- vim/config/plugins/vim-easytags.vim | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/vim/config/plugins/vim-easytags.vim b/vim/config/plugins/vim-easytags.vim index 6c5e526..7cd66a2 100644 --- a/vim/config/plugins/vim-easytags.vim +++ b/vim/config/plugins/vim-easytags.vim @@ -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