sponsor Vim development Vim logo Vim Book Ad

foldsearch : fold away lines that don't match a given pattern

 script karma  Rating 160/52, Downloaded by 3379  Comments, bugs, improvements  Vim wiki

created by
Markus Braun
 
script type
utility
 
description
This plugin provides commands that fold away lines that don't match a specific search pattern. This pattern can be the word under the cursor, the last search pattern, a regular expression or spelling errors. There are also commands to change the context of the shown lines.

For more information about the plugin and its commands please go to [GitHub].

[GitHub]: https://github.com/embear/vim-foldsearch
 
install details
foldsearch is now distributed as a vimball (see :help vimball)

vim foldsearch.vmb
:so %
:q

and that's all!
 

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
foldsearch.vmb 1.2.0 2023-10-01 7.0 Markus Braun - add abilitiy to choose the scope of foldsearch commands
foldsearch.vmb 1.1.1 2014-12-17 7.0 Markus Braun - bugfix: add missing 'call' to ex command
foldsearch.vmb 1.1.0 2014-12-15 7.0 Markus Braun - use vim autoload feature to load functions on demand
- better save/restore of modified options
- added |g:foldsearch_disable_mappings| config variable
- handle multiline regular expressions correctly
foldsearch.vim 2213 2008-07-26 7.0 Markus Braun - fixed a bug in context handling
foldsearch.vim 2209 2008-07-17 7.0 Markus Braun Initial upload
ip used for rating: 3.144.212.145

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