On 31/08/09 03:03, [email protected] wrote:
>
> Patrick Gen-Paul<[email protected]>  [09-08-31 02:58]:
>>
>> Is there any "native" way I could start vim's help full-screen - without
>> coding a macro and mapping it to a key combo - I don't think it's worth
>> bloating my interface further for something this trivial.
>
> Hi Gen-Paul
>
> try
>
>      set helpheight=80
>
> or any other value than '80', which better fit your needs.
> This will size the help window to exactly that height.
> But I still didn't find a way to make the help window
> the sole one. It always looks liketwo windows on the
> screen.
>
> May be a real vim guru has a better help...:)
>
> Have a nice day!
> Best regards,
> mcc
>
>

Almost: to have the help window open full-height

        :set helpheight=99999

to allow non-current windows to shrink to only a status line

        :set winminheight=0

(Optional) to make the current window full-height when it is a "plain" 
non-help edit window (squeezing other split-windows)

        :set winheight=99999 noequalalways

To do all the above with a single command:

        :set noea wmh=0 wh=99999 hh=99999

Notes:
* 'winminheight' is a hard minimum. If

        (&lines < ((winnr('$') * (&wmh + 1)) + (&wmh == 0))

(assuming all splits are horizontal) you get an error. (The term (&wmh 
== 0) is there because the current window always has at least one line 
visible.)
* 'winheight' and 'helpheight' (which apply only to the current window) 
are not hard values. If there isn't enough space to make the windows 
that high, you get what is available.
* The above is what I call "Rolodex Vim": non-current windows are 
reduced to status lines above and below the current window, like the 
non-current pages in a Rolodex above and below the page you're looking at.

If you use the -o command-line switch and want to have it open _all_ 
editfiles, wait until the VimEnter autocommand event before you set 
'winheight' to a high value. You can place the full ":set" command for 
Rolodex Vim in a VimEnter autocommand, as follows:

" set up Rolodex Vim
if has("windows")
     if has("autocmd")
       augroup rolodex
        au VimEnter * set noea wmh=0 wh=99999 hh=99999 cwh=99999
       augroup vimrclocal
     else
        set noea wmh=0 wh=99999 hh=99999 cwh=99999
     endif
endif

('cwh is 'cmdwinheight', for the history window opened by q: q/ or q?)


Best regards,
Tony.
-- 
The brain is a wonderful organ; it starts working the moment you get up
in the morning, and does not stop until you get to school.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"vim_use" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/vim_use?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to