sponsor Vim development Vim logo Vim Book Ad

Quich Filter : Quickly filter all matches of a string, browse the list, and jump back quickly.

 script karma  Rating 210/56, Downloaded by 484  Comments, bugs, improvements  Vim wiki

created by
Niels Aan de Brugh
 
script type
utility
 
description
This plug-in provides filtering/search functionality to Vim, similar to e.g.
PSPad. This plug-in offers a number of additional features:

- Further filtering/searching inside the filtered results.
- Syntaxt highlighting in the filtered results.
- Show context line around found matches. You can dynamically change the number of lines.
- Easy jumping to and from the filter buffers.

The search results are presented in a seperate buffer (and window) and
the script offers a number of convenience key-mappings to navigate from one
result to the next.

The default key mappings are as follows:

-------------------------------------------------------------------------------
    KEY        Description
-------------------------------------------------------------------------------
Any buffer:
    ,f         Filter the current buffer using the line pattern found in
               register @/, that is the search buffer (your last search).
    ,F         Ask for a line pattern and filters using that string.
    ,g         Go to the newest filter window associated with the current
               buffer. If the current buffer is also a filter window, go to
               the next associated filter window that is the newest after the
               current one.
-------------------------------------------------------------------------------
Filter buffer:
    <Enter>    Go to the selected line in the original buffer and keep the filter
               window open.
    <S-Enter>  Same as <Enter> but also closes the filter buffer.
    c/C        Increase/decrease the number of context lines around matches.
    o          Jump to the currently selected line in the original buffer, but
               keep the cursor in the filter window.
    a          Toggle auto follow. If auto follow is on, the original buffer
               will automatically jump to the line your cursor is on (i.e.
               it's the same effect as pressing o each time you move the
               cursor).
    j/k        Jump to next/previous search result.
-------------------------------------------------------------------------------

 
install details
Drop this file in your plug-in directory, e.g. $HOME/vimfiles/plugin or
C:\Program Fles\vim\vimfiles\plugin, and it should be automatically sourced
during start-up.
 

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
filtering.vim 1.0.3.2 2010-07-30 6.0 Niels Aan de Brugh Unix line endings.
filtering.vim 1.0.3.1 2010-07-29 6.0 Niels Aan de Brugh Made some functions less dependent on custom mappings.
filtering.vim 1.0.3 2009-09-09 7.0 Niels Aan de Brugh Fixed error where ,F always searched for ":echo".
filtering.vim 1.0.2 2009-09-03 7.0 Niels Aan de Brugh Another bug found by a helpful user: called FancyEcho instead of s:FancyEcho in a couple of places. This is now fixed.
filtering.vim 1.0.1 2009-09-02 7.0 Niels Aan de Brugh No longer change the global wrapscan setting. Use an emulation for the j/k keys.
filtering.vim 1.0 2009-08-28 7.0 Niels Aan de Brugh Initial upload

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.
   
SourceForge.net Logo