Ⅰ. 插件描述
grep support source for unite.vimⅡ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin 'daisuzu/unite-grep-launcher'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle 'daisuzu/unite-grep-launcher'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug 'daisuzu/unite-grep-launcher'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/daisuzu/unite-grep_launcher
Ⅳ. 文档说明
unite-grep_launcher
unite-grep_launcher is a unite source plugin to launch ":vimgrep" to
current buffer from user defined grep words.
Example Settings
Add keyword to the dictionary type g:grep_launcher_words in vimrc as
following.
if !exists('g:grep_launcher_words')
let g:grep_launcher_words = {}
endif
let g:grep_launcher_words['keyword1'] = 'single grep word'
let g:grep_launcher_words['keyword2'] = 'grep word #1\|grep word #2'
Usage
:Unite grep_launcher