Ⅰ. 插件描述
A vim plugin to add commands for fzy inside of vim!Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'dkendal/fzy-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'dkendal/fzy-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'dkendal/fzy-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/dkendal/fzy-vim
Ⅳ. 文档说明
#fzy-vim
A vim plugin to add commands for fzy inside of vim!
Installation
You know the drill, use your favorite vim package manager, vundle or pathogen, to add fzy-vim.
dependant on fzy (obvs).
Features
Fzy-vim doesn't come with any built in keybindings. To be honest it doesn't do much.
Commands
FzyLsAg- list files using the silversearcher, respects .gitignore and .agignore and open it in the current buffer.FzyTag- list tags, open tag defintion in current buffer - a better :tselect.FzyWorkingTree- list all currently modified files and open in current buffer.FzyGem- list all gems, then list all files in the selected gem.FzyBuffer- fzy select :ls
All of these commands, excluding FzyBuffer which is pending; have tab, vertical, and split variants; which start with either 'T', 'V', or 'S'; respectively.
eg: FzyTag, TFzyTag, VFzyTag, SFzyTag
Functions
fzy#exectute(shell_command, vim_command)- shells out the command and pipes it's output back into the vim command, note shell_command must also includefzy
eg::call fzy#execute('ag -l -g "" --nocolor | fzy', 'edit')
this is done so you can do further transformations with the output of fzy, before it's returned to vim.