sponsor Vim development Vim logo Vim Book Ad

showhide.vim : Show or Hide lines by folding based on pattern

 script karma  Rating 90/30, Downloaded by 2180  Comments, bugs, improvements  Vim wiki

created by
Amit Sethi
 
script type
utility
 
description
A simple script to quickly show/hide lines of interest. Useful for viewing log files or other huge files in general.

Uasge:
     zs    Show all lines containing word under cursor
     zh    Hide all lines containing word under cursor

     :SHOW word pattern ...
           Show lines containing either word or pattern
    
     :HIDE word pattern ...
           Hide lines containing either word or pattern

           -- pattern can be any regular expression --

  See ":h fold" for commands related to folds, e.g.,
     zn    Open all folds
 
install details
Copy showhide.vim to your .vim/plugin directory
 

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
showhide.vim 1.0 2006-06-29 6.0 Amit Sethi 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