2

Is it possible to redraw vim's screen if I do the following:

  1. Vim in small 80x24 terminal
  2. vsplit file2.c
  3. Maximize terminal
  4. It's all wonkey and I don't know how to make ti redraw the windows evenly.
2
  • possible duplicate of Putty: Refresh VIM screen. Short version of the answers is to use either Ctrl-L or the :redraw command
    – ernie
    Aug 5, 2014 at 18:53
  • @ernie No, it does not (and should not) help. Aug 5, 2014 at 22:49

3 Answers 3

1

Also it is possible set an autocommand to perform <C-w>= each time when you resize a terminal.

au VimResized * if &equalalways | wincmd = | endif 

&equalalways is an option that resizes windows to equal after splitting / closing (set by default), so it is quite natural to use it here too.

1
  • @user341814 Oh! Yes, indeed. The complexity of local ‘privileges’ system surprises me always. Aug 6, 2014 at 0:46
2

Try Ctrl-w = in normal mode to make all windows equally sized.

0

For correctly adapting non-equal window splits, you can try my ProportionalResize plugin.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .