Advanced Vim users, and especially those with large monitors, often take advantage of Vim’s split capabilities, splitting their screens into segments and displaying files side by side. If you’re like me, you could easily end up with 6 or 7 files open at once, split in various configurations. Vim splits are a powerful way for users to multitask across many files.
As you close buffers, you may end up in a state where your splits are uneven. It’s also common that your splits become unbalanced when you resize your terminal window or when you create or destroy tmux panes.
But there’s a quick trick to even out your splits:
ctrl-w = will equalize all the splits on your screen. Let’s take a look at this in action:
If you found this useful, impress your friends with your Vim prowess: Tweet it out!
A note from Colin and Andy:
We constantly want your feedback on our newsletter. Our goal is to deliver you a steady stream of Vim tidbits. Some you’ll know already, some you won’t. Some will apply to your environment or language, some won’t. Hopefully everyone will find a tip of value to them in VimTricks.
Anything specific you want to see us write about? Prefer longer form content? Love the short form stuff like this? Vote below and email us your feedback!
Was this useful? Help us improve!
With your feedback, we can improve VimTricks. Click a link to vote: