sponsor Vim development Vim logo Vim Book Ad

Tags Updater : Simple tags automatic updater

 script karma  Rating 9/3, Downloaded by 1151  Comments, bugs, improvements  Vim wiki

created by
fanhe
 
script type
utility
 
description
This script is a very simple utility to help you to update tags automatically.
It will update the tags after saving a file.

DEPENDING:
  * ctags
  * sed
  * grep

USAGE:
  $ ctags -R
  $ vim <file> # now tags will update automatically

OPTIONS:
  g:tags_updater_update_exist     integer (default 0)
      If not 0, Tags Updater only updates tags of file which the file is
      already in tags file

  g:tags_updater_ctags_program    string (default 'ctags')
      The ctags program.

LIMITATION:
  If g:tags_updater_update_exist is 0, the file under directory of tags will
  be updated. For example, case 1 will not be updated and case 2 will be.

  case 1:
      dir
      |-- a
      |   `-- tags
      `-- file

  case 2:
      dir
      |-- a
      |   `-- file
      `-- tags
 
install details
Put the .vim file to ~/.vim/plugin or corresponding directory on Windows.
NOTE: If you are on Windows, grep and sed programs are needed in your PATH. Download them from http://gnuwin32.sourceforge.net/ and and to you PATH environment variable.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
tags_updater.vim 1.2 2013-09-28 7.2 fanhe - Supported Windows (need grep and sed).
tags_updater.vim 1.0 2013-09-25 7.2 fanhe Initial upload
ip used for rating: 3.237.32.143

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github