I use the following options to make the split, which I focus on the largest on the screen. When switching between partitions, the window sizes are updated accordingly:
set winwidth=84
set winheight=5
set winminheight=5
set winheight=999
This works fine, however you see that there are two definitions winheight, which is odd. I deleted the first ad winheightto make sure everything works the same. Unfortunately, vim throws an error that it cannot process my .vimrc file.
So, to clarify the situation, I stole this configuration from someone .vimrc. There must be a reason why these options should be set twice, but I could not find anything useful in the help.
Do you know why vim throws an error in this case?
source
share