glimpse


Ⅰ. 插件描述

Use Glimpse searching easily from Vim.

Ⅱ. 基本信息

创建日期:  2009-03-19
使用用户:  1
Github星:  1
插件作者:  Mahlon Smith

Ⅲ. 安装方法

使用Vundle管理器安装

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

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

使用NeoBundle管理器安装

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

使用VimPlug管理器安装

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

使用Pathogen管理器安装

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

Ⅳ. 文档说明

Glimpse is a powerful indexing and query system, free for personal use.

http://www.webglimpse.net

VimGlimpse is a basic Glimpse interface within Vim, based on a Vim Tip from
Jean-Rene David.

http://vim.wikia.com/wiki/Use_glimpse_from_within_Vim

VimGlimpse retains normal Vim :grep functionality, and provides
additional Glimpse features outside of what :grepprg can allow.  By
default, VimGlimpse only searches within your current working directory,
making it ideal for near instantaneous searches across a project.

Examples:

    :Glimpse porksausage

    Find porksausage across all files in the current working directory.

    :Glimpse needle haystack.h$

    Finds all needles in all haystack.h's files.

:let g:glimpseFlags = "-iny -2"
:Glimpse Anestesiology html 

    Outputs all occurrences of  Anestesiology  with  two  errors  in
    files with html somewhere in their full name.

:Glimpse windsurfing;Arizona mail;1993

    Finds  all lines containing windsurfing and Arizona in all files
    having `mail' and '1993' somewhere in their full name.

Results are placed into the |quickfix| window.  Additionally, the 'q' key is
bound to the window so you can close it again quickly.

添加新评论