This plugin allows to maximize/unmaximize the current window:
No mapping by default, define your own.
e.g.
nmap gsz <Plug>(vzoom)Use it to maximize/unmaximize your current window.
Even quicker, just leave the maximized window and it will get its initial size back.
You can enable automatic zoom with:
:VZoomAutoToggleFor disabling it, you can either use the command above or the <Plug>(vzoom) key mapping.
Copy the distributed files into Vim runtime directory which is usually ~/.vim/, or $HOME/vimfiles on Windows.
Or in a better way, use a vim plugin manager.
e.g with Vim-plug plus lazyloading:
Plug 'KabbAmine/vZoom.vim', {'on': ['<Plug>(vzoom)', 'VZoomAutoToggle']}The plugin's configuration is stored in one global dictionnary g:vzoom.
To define/modify an option you can either:
let g:vzoom = {}
let g:vzoom.option1 = 'foo'
let g:vzoom.option2 = 0
Or:
let g:vzoom = {
\ 'option1': 'foo',
\ 'option2': 0
\ }| option | description | default |
|---|---|---|
equalise_windows |
Equalise size of windows (<C-w>=) after unmaximizing |
0 |
N.B
- The plugin uses
setwinvar()function to set back the initial size of the window, but unfortunately sometimes it can fail. So to prevent strange behavior, always setg:vzoom.equalise_windowsto1. - For the same reason above, when using
VZoomAutoToggleand disabling auto-zoom the windows are always resized equally regardless of theg:vzoom.equalise_windowsvalue.
Thanks to Bram Moolenaar for creating the best piece of software in the world ❤️
Thanks to you if you're using vZoom.
MIT