LimitWindowSize : Reduce the current window size by placing an empty padding window next to it.
script karma |
Rating 6/3,
Downloaded by 1241 |
Comments, bugs, improvements
|
Vim wiki
|
created by |
Ingo Karkat |
|
script type |
utility |
|
description |
DESCRIPTION
Text files that do not have "hard" word wrapping via embedded line breaks can
be cumbersome to edit in a wide editor window, as it is strenuous on the eyes
to jump back and forth between begin and end of the soft-wrapped lines.
The simplest solution is to resize the editor window (:set columns=80), but
one may still want to have the large editor size for other edited buffers that
benefit from the large screen real estate.
This plugin places an empty padding window next to the current window, thereby
reducing its size while maintaining the overall editor size.
USAGE
:LimitWindowWidth [{width}]
Limit the window width of the current window by placing
an empty padding window to the right. If there already
is a padding window, its size is adapted according to
'textwidth' / {width}, or removed if the width is so
large that no padding is needed. |
|
install details |
INSTALLATION
This script is packaged as a vimball. If you have the "gunzip" decompressor
in your PATH, simply edit the *.vmb.gz package in Vim; otherwise, decompress
the archive first, e.g. using WinZip. Inside Vim, install by sourcing the
vimball or via the :UseVimball command.
vim LimitWindowSize*.vmb.gz
:so %
To uninstall, use the :RmVimball command.
DEPENDENCIES
- Requires Vim 7.0 or higher.
- Requires the ingo-library.vim plugin (vimscript #4433), version 1.004 or
higher. |
|
script versions (upload new version)
Click on the package to download.
ip used for rating: 142.132.191.50
|