On 09/10/11 11:08, Roger wrote:
Reading the good book Learning the VIM Editor(s) and see winwidth& winheight
mentioned, but am having trouble getting it working here!
Why, when settings winwidth on vertical split files, it's not automagically
resizing the windows as I toggle between the files?
I have set to noequalalways, also. :-/
With me it does, but remember that these options are "desired minimums
for the current window" and that the "absolute minimums for any window"
are set by 'winminwidth' and 'winminheight'. When switching windows, the
new window will not be resized if it already exceeds the desired
minimum, nor will it be made bigger than would allow all other windows
to remain at or above the absolute minimum.
Also, some special window types have their own desired minimums: see
:help 'helpheight'
:help 'cmdwinheight'
:help 'previewheight'
The absolute minimums may be set to zero, the desired minimum for the
current window must be at least 1 since the currentcursor location must
always be visible.
The following should swell the current window to maximum size, squashing
other windows to only a vertical divider on left and right or a status
line above and below:
:set nowfh " no fixed size
:set noea eadirection=both " no equal size
:set wmw=0 wmh=0 " squash other windows
:set wiw=9999 wh=999 hh=999 cwh=999 pvh=999 " enlarge current window
:let netrw_winsize = 100 " netrw split to 100% size
Best regards,
Tony.
--
"What is wanted is not the will to believe, but the will to find out,
which is the exact opposite."
-- Bertrand Russell, "Skeptical_Essays", 1928
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php