ultrawide.vim
solves the issue with ultrawide setups where running Vim in fullscreen gives you neck pain. This plugins allows you to run Vim in non-fullscreen and maintain GUI window size and position. It targets only full-height vertical splits where adjusting GUI window geometry makes sense.
- when creating a new vertical split, it increases GUI window width and shifts the window accordingly to the left
- when closing a vertical split, it decreases GUI window width and shifts the window accordingly to the right
Live demo:
ultrawide.mp4
WinNewPre
event (Vim 9.1.0059 or newer, see https://github.com/vim/vim/commit/1f47db7)xwininfo
(X11), PRs to support other platforms are welcome!