Preserve split percentages on UI resize. If you have 70/30 or 50/50 vertical splits, resizing your terminal/editor resizes the splits proportionally.
- Lightweight. Does nothing until
VimResizedfires. - Per-tab state.
- Respects
winfixwidthcolumns (they keep their width).
{ "adlrwbr/keep-split-ratio.nvim", opts = {} }As we resize the window,
| Default | with keep-split-ratio.nvim |
|---|---|
| only the right side grows and shrinks | both splits grow and shrink |
-
winfixwidth/winfixheight
Mark a split as fixed (:set winfixwidth) so it resists being resized.
Useful for sidebars but the opposite of keeping ratios. -
Manual equalize
The keybind<C-w>=equalizes all splits on demand. -
equalalways
:set equalalwaysorvim.opt.equalalways = true
Automatically equalizes splits whenever the window is resized or a new split is opened. -
focus.nvim
Full-fledged window manager: auto-resizing, focus mode, etc. -
windows.nvim
Automatic window sizing with focus animation.
