I have files that I am comparing side-by-side using the vertical split functionality in gvim, and am sizing them to 4-5 characters wide. Whenever I focus on one of these files, gvim automatically resizes the file view to 20 characters.
How do I disable this functionality?
NOTE: I am running vim 7.4.161 on Debian Jessie.
In the split that you don't want to be resized you have to
:set winfixwidth
If you don't want vim to make splits equal everytime you split or switch to a window you can do the following:
:set noequalalways
Of course @René Nyffenegger solution of using 'winfixwidth'
works well too.
For more help see:
:h 'ea'
:h 'wfw'
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With