Skip to content
Automatic resizing of Vim windows to the golden ratio
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
doc Clarify golden_ratio_wrap_ignored in doc May 24, 2017
plugin Fix restoring 'wrap' setting with no autocmd Jan 21, 2014
LICENSE [#9] Add a proper readme with instructions. Nov 30, 2012
README.md Merge pull request #23 from idbrii/master Jan 11, 2017
VERSION.yml

README.md

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.

You can’t perform that action at this time.