sponsor Vim development Vim logo Vim Book Ad

glark.vim : a wrapper for the glark command (a grep-like utility)

 script karma  Rating 3/4, Downloaded by 2176  Comments, bugs, improvements  Vim wiki

created by
Tom Link
 
script type
utility
 
description
This plugin provides one wrapper command for the glark command:

    :Glark <args>

Example: Find occurrences of "foo" and "bar" within 3 lines and
display 2 lines context:

    :Glark -r -C 2 --and=3 foo bar *

The arguments are passed to the glark command.

It displays the output of the glark command (see below) in a window,
does some highlighting and provides some handy key maps.

If you don't want to display context information, you're probably better
off by setting 'grepprg' to "glark --grep".

Be also aware that this plugin doesn't use vim's quickfix functionality
as most grep plugins do.
 
install details
Unzip the archive to ~/.vim or %HOME%/vimfiles.

You also need the glark command of course. glark (a ruby-based,
grep-like utility) was made by Jeff Pace and can be downloaded from:

    http://glark.sourceforge.net

Make sure your version is >= 1.7.5.


Also available via git
http://github.com/tomtom/vimtlib/tree/master
 

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
glark.zip 0.2a 2006-03-31 6.0 Tom Link Forgot to add the ftplugin
glark.zip 0.2 2006-03-29 6.0 Tom Link - File completion for the :Glark command
- Support folds
- Use --explain option to construct @/ pattern
- Bind double click to open file
- GlarkUpdate() (bound to 'u')
- GlarkKeys() is called from ftplugin -> glark is a proper filetype now
- If g:glarkHeight is 0, the window is set to &lines/2 at runtime.
- Unset wrap before jumping to a line in the document
glark.zip 0.1 2006-02-06 6.0 Tom Link Initial upload
ip used for rating: 142.132.191.50

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