Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
How to make the two windows equal width when comparing files with command
vim -d file1 file2?
vim -d file1 file2
How to make the two windows be equal width?
You can equalize the size of windows with <c-w>=.
If you want the window widths to remain equal as you change the size of the Vim window, try this in your ~/.vimrc:
au VimResized * wincmd =
Required, but never shown