sponsor Vim development Vim logo Vim Book Ad

narrow_region : hide certain lines of a buffer

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

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

...
:[range]NarrowRegion
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: 216.73.216.155

Questions about Vim should go to the maillist. Help Uganda.     Vim at Github