golden-ratio


Ⅰ. 插件描述

Automatic resizing of Vim windows to the golden ratio

Ⅱ. 基本信息

创建日期:  2011-08-11
使用用户:  176
Github星:  275
插件作者:  Roman Gonzalez

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'roman/golden-ratio'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'roman/golden-ratio'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'roman/golden-ratio'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/roman/golden-ratio

Ⅳ. 文档说明

# Golden Ratio

When working with many windows at the same time, each window has a size that is
not convenient for editing.

golden-ratio helps on this issue by resizing automatically the windows you are
working on to the size specified in the "Golden Ratio". The window that has the
main focus will have the perfect size for editing, while the ones that are not
being actively edited will be re-sized to a smaller size that doesn't get in
the way, but at the same time will be readable enough to know it's content.

Example of autocmd resizing.

You can also disable the automatic resizing and use a mapping to resize on
demand.

For more info about the golden ratio check out Golden Ratio on Wikipedia.

Options

Refer to :help golden-ratio for options.

Installation

cd ~/.vim/bundle 
git clone git://github.com/roman/golden-ratio.git
" .vimrc
Bundle 'roman/golden-ratio'

Credits

This plugin was developed by Roman Gonzalez (romanandreg [at] gmail.com), if
you have any suggestions to improve the code/functionality please send a pull
request to the github repo:

http://github.com/roman/golden-ratio

Thanks particuarly to ujihisa for the inspiration to develop this plugin.

License

golden-ratio is released under the MIT license. Check LICENSE file.

添加新评论