FastGrep


Ⅰ. 插件描述

FastGrep for a string using native linux commands in Ruby on Rails projects.

Ⅱ. 基本信息

创建日期:  2008-08-20
使用用户:  1
Github星:  1
插件作者:  Nelson Fernandez

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin '/fastgrep'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle '/fastgrep'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug '/fastgrep'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/vim-scripts/FastGrep

Ⅳ. 文档说明

Usage:
  Define a hotkey to call FastGrep() function to search for a string in your project like this:

  map <F12> :call FastGrep()<CR>

  The search result will come back in a window that can be customized to be vertical or horizontal
  using this flag:

  let g:fgVertSplit = 1

  If is defined, the result window will be vertical, horizontal if not.

  In the result window can use 'e' and 'r' keys to cycle between results lines and 'q' to close the window.
  If put the cursor over the filename in the result window, can use gF to go to the file and line number.

  This script used some code burrowed from Specky! [1] and a TextMate bundle [2]

  Happy coding !

  [1] http://vim.sourceforge.net/scripts/script.php?script_id=2286
  [2] http://gist.github.com/4291/

添加新评论