Equalize your splits

3.5
(380)

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!

How useful was this post?

Average rating 3.5 / 5. Vote count: 380

No votes so far! Be the first to rate this post.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?

Written by

Colin Bartlett

49 Posts

Vim enthusiast and software developer for more than 20 years.
View all posts

Leave a reply

Your email address will not be published. Required fields are marked *