From 670910e860fa2b74223add86af572bd6299f0b65 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Mon, 2 May 2011 00:57:14 +0200 Subject: Enable updating of project specific tags files --- plugin/easytags.vim | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'plugin/easytags.vim') diff --git a/plugin/easytags.vim b/plugin/easytags.vim index 2884da6..0c0537a 100644 --- a/plugin/easytags.vim +++ b/plugin/easytags.vim @@ -1,10 +1,10 @@ " Vim plug-in " Author: Peter Odding -" Last Change: April 23, 2011 +" Last Change: May 2, 2011 " URL: http://peterodding.com/code/vim/easytags/ " Requires: Exuberant Ctags (http://ctags.sf.net) " License: MIT -" Version: 2.2.5 +" Version: 2.2.6 " Support for automatic update using the GLVS plug-in. " GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip @@ -19,13 +19,17 @@ let s:script = expand(':p:~') " Configuration defaults and initialization. {{{1 if !exists('g:easytags_file') - if has('win32') || has('win64') + if xolox#misc#os#is_win() let g:easytags_file = '~\_vimtags' else let g:easytags_file = '~/.vimtags' endif endif +if !exists('g:easytags_dynamic_files') + let g:easytags_dynamic_files = 0 +endif + if !exists('g:easytags_resolve_links') let g:easytags_resolve_links = 0 endif @@ -140,7 +144,7 @@ function! s:RegisterTagsFile() " this is a bug in Vim is to type :set tags= then press followed by " . Now you entered the exact same value that the code below also did " but suddenly Vim sees the tags file and tagfiles() != [] :-S - call insert(tagfiles, g:easytags_file) + call add(tagfiles, g:easytags_file) let value = xolox#misc#option#join_tags(tagfiles) let cmd = 'set tags=' . escape(value, '\ ') if xolox#misc#os#is_win() && v:version < 703 -- cgit v1.2.3