sponsor Vim development Vim logo Vim Book Ad

narrow_region : hide certain lines of a buffer

 script karma  Rating 2/2, Downloaded by 675  Comments, bugs, improvements  Vim wiki

created by
Andreas Politz
script type
This plugin provides a command which somewhat limits the buffer to a specified range of lines.

This command does the following, with [range] defaulting to
the current line :
- store current folds, foldstates and foldoptions
- delete all folds
- setl foldopen=undo
- setl foldclose=all
- setl foldminlines=0
- setl foldmethod=manual
- fold all lines outside of range
- setup the nice extras, see below
install details
As usual :

vim narrow_region.vba
:so %


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
narrow_region.vba v1.0 2007-10-05 7.0 Andreas Politz Initial upload
ip used for rating:

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