ctags.vim


Ⅰ. 插件描述

Display function name in the title bar.

Ⅱ. 基本信息

创建日期:  2001-06-05
使用用户:  373
Github星:  19
插件作者:  Alexey Marinichev

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

This script uses exuberant ctags to build the list of tags for the current file.  CursorHold event is then used to update titlestring.

Upon sourcing an autocommand is created with event type CursorHold.  It updates the title string using the function GetTagName.  Another autocommand of type BufEnter is created to generate tags for .c, .cpp and *.h files.

Function GenerateTags builds an array of tag names.

Function GetTagName takes line number argument and returns the tag name.

添加新评论