Ⅰ. 插件描述
:cherry_blossom: :microscope:Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'zackhsi/fzf-tags'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'zackhsi/fzf-tags'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'zackhsi/fzf-tags'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/zackhsi/fzf-tags
Ⅳ. 文档说明
fzf-tags
fzf-tags bridges the gap between tags and fzf.vim.
It combines :tag and :tselect into a single improved command.
fzf-tags looks up the identifier under the cursor.
- If there are 0 or 1 definitions, the behavior is same as
:tag. - When there are multiple definitions, the results are piped to fzf for
interactive filtering (https://github.com/junegunn/fzf#search-syntax).
fzf-tags uses the built-in :tag command under the hood, which yields a
couple benefits.
- Tag stack management works as expected (CTRL-T or
:popreturn you to your
previous location). - Tag priority works as expected (
:help tag-priority).
Installation
Plug 'zackhsi/fzf-tags'Configuration
fzf-tags exposes the <Plug>(fzf_tags) mapping.
To override the default jump-to-tag binding:
nmap <C-]> <Plug>(fzf_tags)