I once created a custom function that toggles between vertical and horizontal splits of two windows. It’s quite handy. https://github.com/masutaka/dotfiles-public/blob/66c976fb069...