Ⅰ. 插件描述
Reduce the current window size by placing an empty padding window next to it.Ⅱ. 基本信息
|
Ⅲ. 安装方法
使用Vundle管理器安装
在你的.vimrc下添加:Plugin '/limitwindowsize'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall
对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。
使用NeoBundle管理器安装
在你的.vimrc下添加:NeoBundle '/limitwindowsize'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall
使用VimPlug管理器安装
在你的.vimrc下添加:Plug '/limitwindowsize'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall
使用Pathogen管理器安装
在终端中运行以下命令:cd ~/.vim/bundle
git clone https://github.com/vim-scripts/LimitWindowSize
Ⅳ. 文档说明
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.