Ⅰ. 插件描述
simplifies usage of 'grep'Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/greputil-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/greputil-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/greputil-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/greputil.vim
Ⅳ. 文档说明
This script simplifies usage of the :grep-command and the navigation
through search results and search history.
To start search for the word under the cursor or for the visually
selected text press <Leader>gr. If there is no word under the cursor,
you will be prompted for a search-string. To be prompted for a
search-string anyway pressing <Leader>ga will do it.
Files will be searched in the actual directory. The file pattern
can be defined by a global variable, its default is
".c .h .cpp .hpp" (yes, this script is primarily for
programmers :-) )
To show search-results open quickfix-window with :copen.
To navigate through the occurrences press <F6> or <F7>.
To bring back results of older or newer search-sessions press
<S-F6> or <S-F7>.