From 89f9205ff840329aa75166249a99b1d0f227d661 Mon Sep 17 00:00:00 2001 From: Peter Odding Date: Mon, 9 Aug 2010 17:52:56 +0200 Subject: Enable commands like :UpdateTags -R ~/.vim * The :UpdateTags command now passes any arguments given to it on to Exuberant Ctags, which sounds simple enough but required a complex implementation. This means users can now do things like: :UpdateTags -R ~/.vim Because Ctags can be run easily from inside Vim, users won't have to run it manually from the command line. The plug-in also makes sure the required command-line options to Ctags are always used. * Fixed a problem most users will probably never encounter. I'm not sure whether this is by design or an implementation detail but it's possible for the "!_TAG_FILE_SORTED" header to appear after one or more tags and Vim will apparently still use the header! For this reason the easytags#write_tagsfile() function should also recognize it, otherwise Vim might complain with "E432: Tags file not sorted". * Always sort tags in easytags#write_tagsfile() (understands foldcase) * Finally documented the :UpdateTags and :HighlightTags commands. * The dynamic highlighting can now be disabled for individual buffers, which can come in handy when the highlighting conflicts with another plug-in: Just set the 'b:easytags_nohl' variable to any value. * Removed hard wrapping from README.md because I've recently switched to a 21" external monitor ;-) --- easytags.vim | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'easytags.vim') diff --git a/easytags.vim b/easytags.vim index e692532..22845fb 100644 --- a/easytags.vim +++ b/easytags.vim @@ -1,10 +1,10 @@ " Vim plug-in " Author: Peter Odding -" Last Change: July 20, 2010 +" Last Change: August 9, 2010 " URL: http://peterodding.com/code/vim/easytags/ " Requires: Exuberant Ctags (http://ctags.sf.net) " License: MIT -" Version: 1.9.7 +" Version: 2.0 " Support for automatic update using the GLVS plug-in. " GetLatestVimScripts: 3114 1 :AutoInstall: easytags.zip @@ -131,8 +131,8 @@ call s:RegisterTagsFile() " The :UpdateTags and :HighlightTags commands. {{{1 -command! -bar -bang UpdateTags call easytags#update_cmd( == '!') -command! -bar HighlightTags call easytags#highlight_cmd() +command! -bar -bang -nargs=* -complete=file UpdateTags call easytags#update(0, == '!', ) +command! -bar HighlightTags call easytags#highlight() " Automatic commands. {{{1 -- cgit v1.2.3