juanedflores / vimzoom

Tmux like zoom in vim

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

vimzoom

Minimal plugin to allow tmux like zooming in and out of windows

zoom

Installation

With vimplug: Plug 'yannick-cw/vimzoom'

Usage

The plugin gives you a :Zoom command that opens the focused window in a new tab. Executing the :Zoom command again closes that tab.

If you want to include the zoom state in a statusline you can call the IsZoomed function, which returns a Z for zoomed or '' if not zoomed in.

I have if configured to show up in lightline

let g:lightline = {
      \ 'active': {
      \   'left': [ [ 'mode', 'paste' ],
      \             [  'zoomed', 'readonly', 'filename', 'modified' ] ]
      \ },
      \ 'component_function': {
      \   'zoomed': 'IsZoomed'
      \ },
      \ }

You might want to add a keymapping like

nnoremap <leader>z :Zoom<CR>

Config

If you want to not have the tabbar closed in the zoomed in window, you can overwrite that behaviour with

let g:vimzoom#no_bar = 0

About

Tmux like zoom in vim


Languages

Language:Vim Script 100.0%