sponsor Vim development Vim logo Vim Book Ad

glimpse : Use Glimpse searching easily from Vim.

 script karma  Rating 25/7, Downloaded by 1117  Comments, bugs, improvements  Vim wiki

created by
Mahlon Smith
 
script type
utility
 
description
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.

 
install details
Install the VimBall plugin (vimscript #1502) if you don't already have it.

Then open glimpse.vba from within vim.

    :so %

Restart vim, read the the docs (:help glimpse), and enjoy.
 

rate this script Life Changing Helpful Unfulfilling 
script versions (upload new version)

Click on the package to download.

package script version date Vim version user release notes
glimpse.vba.gz 0.3 2009-07-30 7.0 Mahlon Smith Fixed :GlimpseIndex problems for the vast majority of error cases.  If indexing still doesn't work, now display the error for easier user debugging instead of silently eating it.
glimpse.vba 0.2 2009-03-28 7.0 Mahlon Smith Fix the "pattern too long has > 32 chars" error.  (Empty boolean search for filename paths.)
glimpse.vba 0.1 2009-03-19 6.0 Mahlon Smith Initial upload
ip used for rating: 54.196.27.122

If you have questions or remarks about this site, visit the vimonline development pages. Please use this site responsibly.
Questions about Vim should go to the maillist. Help Bram help Uganda.
   
Vim at Github