Thanks to visit codestin.com
Credit goes to github.com

Skip to content

A small vim plugin to quickly maximize/unmaximize the current window

License

KabbAmine/vZoom.vim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vZoom - Quickly maximize & unmaximize the current window

Badge version License version

Description

This plugin allows to maximize/unmaximize the current window:

  • Manually

    vZoom demo

  • Or automatically:

    Auto-zoom demo

Mappings

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.

Commands

You can enable automatic zoom with:

:VZoomAutoToggle

For disabling it, you can either use the command above or the <Plug>(vzoom) key mapping.

Installation

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']}

Configuration

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
		\ }

Options

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 set g:vzoom.equalise_windows to 1.
  • For the same reason above, when using VZoomAutoToggle and disabling auto-zoom the windows are always resized equally regardless of the g:vzoom.equalise_windows value.

Notes

Thanks to Bram Moolenaar for creating the best piece of software in the world ❤️

Thanks to you if you're using vZoom.

License

MIT

About

A small vim plugin to quickly maximize/unmaximize the current window

Resources

License

Stars

Watchers

Forks

Packages

No packages published