So, I was trying to write an autocommand that would fire every time window is resized (not the Vim window entirely, a CTRL-W
window).
As there is no dedicated event, i tried using OptionSet
with different windows' sizes options, but that obviously does not work for :resize
commands and keystrokes, etc.
I was thinking about catching :resize
command itself, but it seems like there is no event for doing that (using events for entering a command line seems to be too expensive).
Are there any vim-fu masters who could show me the way? That would be great if there could be a universal way for catching window resizing per se, but other options would do too. Thanks in advance!