narrow : Emulate Emacs' narrowing feature
| script karma
Downloaded by 2251
Comments, bugs, improvements
script versions (upload new version)
|*narrow* is a Vim plugin to emulate Emacs' narrowing feature.
From GNU Emacs Manual:
Narrowing means focusing in on some portion of the buffer, making the
rest temporarily inaccessible. The portion which you can still get to
is called the accessible portion. Canceling the narrowing, which makes
the entire buffer once again accessible, is called widening. The
bounds of narrowing in effect in a buffer are called the buffer's
Narrowing can make it easier to concentrate on a single subroutine or
paragraph by eliminating clutter. It can also be used to limit the
range of operation of a replace command or repeating keyboard macro.
Note that there are some differences from the original behavior.
See |narrow-bugs| for the detail.
- Vim 7.0 or later
Document in HTML format:
Click on the package to download.
ip used for rating:
||- Fix minor bugs:
- |:Widen| raises an error for buffers without fold.
- |:Narrow| doesn't hide lines smaller than 'foldminlines'.
||- Fix |:Narrow| and |:Widen| not to use temporary files. Now |:Widen| correctly works even if the target buffer is |:Narrow|'ed by two or more Vim processes.
- Modify |:Narrow| to |zz| after narrowing for visibility.
- Modify |:Narrow| to include all lines of closed folds in [range].
||- Fix the bug that 'foldenable' is not set after :Narrow.
- Fix the bug that the cursor is moved to somewhere after :Widen.
- Add g:narrow_allow_overridingp.