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 --- autoload/xolox/easytags.vim | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/xolox/easytags.vim b/autoload/xolox/easytags.vim index 8202e8a..15d63f7 100644 --- a/autoload/xolox/easytags.vim +++ b/autoload/xolox/easytags.vim @@ -1,6 +1,6 @@ " Vim script " Author: Peter Odding -" Last Change: March 15, 2011 +" Last Change: April 23, 2011 " URL: http://peterodding.com/code/vim/easytags/ let s:script = expand(':p:~') @@ -344,6 +344,12 @@ function! xolox#easytags#add_tagged_file(filename) " {{{2 endfunction function! xolox#easytags#get_tagsfile() " {{{2 + if g:easytags_dynamic_files + let files = tagfiles() + if len(files) > 0 + return files[0] + endif + endif let tagsfile = expand(g:easytags_file) if filereadable(tagsfile) && filewritable(tagsfile) != 1 let message = "The tags file %s isn't writable!" -- cgit v1.2.3