Ⅰ. 插件描述
Show tag information for the word under cursor/mouse pointer (in VIM)Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'tomtom/ttagecho'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'tomtom/ttagecho'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'tomtom/ttagecho'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/tomtom/ttagecho_vim
Ⅳ. 文档说明
This plugin is similar to echofunc (vimscript #1735) to which it owes
much inspiration and two lines of code. It displays some information
about the tag under the cursor or mouse pointer either in the echo area
or as balloon help (see |g:ttagecho_balloon_patterns|). If there are
more than one tags that match, you can loop through the tags by invoking
the respective commands repeatedly.
If hookcursormoved (vimscript #2037, version >= 0.4) is installed, for
certain filetypes (see |g:ttagecho_parentheses_patterns|) it will
display the information in the echo area also if the cursor moves over a
round parenthesis.
If you don't like the default format for the tags, you can define the
function TTagechoFormat_{&filetype}(a:tag) that should return some nicely
formatted information.
Status: Works for me (there may be some minor quirks)
Dependencies:
hookcursormoved :: http://github.com/tomtom/hookcursormoved_vim
> git clone git://github.com/tomtom/hookcursormoved_vim.gittlib :: http://github.com/tomtom/tlib_vim
> git clone git://github.com/tomtom/tlib_vim.gitInstall: See http://github.com/tomtom/vimtlib/blob/master/INSTALL.TXT
See http://github.com/tomtom for related plugins.