aboutsummaryrefslogtreecommitdiffstats
path: root/easytags.vim
diff options
context:
space:
mode:
authorPeter Odding <peter@peterodding.com>2010-08-09 17:52:56 +0200
committerPeter Odding <peter@peterodding.com>2010-08-09 17:52:56 +0200
commit89f9205ff840329aa75166249a99b1d0f227d661 (patch)
tree539040f39d4f9079ebdddecffe7e4502406fda7a /easytags.vim
parent9d4c5c8823411cddaeee61a58141e453ea897da0 (diff)
downloadvim-easytags-89f9205ff840329aa75166249a99b1d0f227d661.tar.gz
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 ;-)
Diffstat (limited to 'easytags.vim')
-rw-r--r--easytags.vim8
1 files changed, 4 insertions, 4 deletions
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 <peter@peterodding.com>
-" 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(<q-bang> == '!')
-command! -bar HighlightTags call easytags#highlight_cmd()
+command! -bar -bang -nargs=* -complete=file UpdateTags call easytags#update(0, <q-bang> == '!', <f-args>)
+command! -bar HighlightTags call easytags#highlight()
" Automatic commands. {{{1