How to make the two windows equal width when comparing files with command
vim -d file1 file2
?
How to make the two windows be equal width?
Vi and Vim Stack Exchange is a question and answer site for people using the vi and Vim families of text editors. It only takes a minute to sign up.
Sign up to join this communityHow to make the two windows equal width when comparing files with command
vim -d file1 file2
?
How to make the two windows be equal width?
If you want the window widths to remain equal as you change the size of the Vim window, try this in your ~/.vimrc:
if exists("##VimResized")
if &diff
au VimResized * wincmd =
endif
endif