TagHighlight


Ⅰ. 插件描述

Extra highlighting of typedefs, enumerations etc (based on ctags)

Ⅱ. 基本信息

创建日期:  2009-05-21
使用用户:  179
Github星:  26
插件作者:  Al Budden

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/ctags-highlighting'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/ctags-highlighting'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/ctags-highlighting'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/TagHighlight

Ⅳ. 文档说明

TagHighlight is a plugin that highlights names of classes, variables, types etc in source code in Vim.  This makes it quicker and easier to spot errors in your code.  By using exuberant ctags and parsing the output, the typedefs, #defines, enumerated names etc are all clearly highlighted in different colours.  As standard, it supports the following languages (but it's very easy to add more):

  • C/C++ (most of the testing has been with these)
  • C#
  • Java
  • Javascript
  • Matlab (if your version of ctags supports it)
  • Perl
  • PHP
  • Python
  • Ruby
  • Scala
  • Fortran
  • Go (if your version of ctags supports it)
  • VHDL (if your version of ctags supports it)

Adding more languages is extremely simple.

To show the benefit of this plugin, there are some screenshots and a more detailed description at the following website:

http://www.cgtk.co.uk/taghighlight


This version replaces the previous "CTAGS Highlighting" script and it is necessary to uninstall that plugin in order to upgrade to the new version.  Detailed instructions are on the website or in the enclosed documentation.

The source is now maintained on bitbucket (https://bitbucket.org/abudden/taghighlight).  There is also a mirror on github (https://github.com/abudden/taghighlight-automirror), although I can't guarantee this will be as up to date as the bitbucket version.

添加新评论