Friday, March 30, 2012

Re: :help WITHOUT split screen

On 12:51 Fri 30 Mar , Tarlika Elisabeth Schmitz wrote:
> This is one of my biggest bug bears and it drives me absolutely nuts:
>
> Is there a way to prevent :help from splitting the window?!
> I never, ever want a horizontal split. I'd just like to see the help
> text in a new tab.
>
>
> I mostly use gvim, sometimes vim. So I need a solution that works in
> both cases.
>
> --
>
> Best Regards,
> Tarlika Elisabeth Schmitz, Scotland
>
> --
> 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

Hi,

What about using an autocommand:

au BufEnter * if &filetype == 'help' | :only | endif

See ':help :only' for how it works when 'hidden' is not set.

The drawback of it is that if you have several windows opened it will hide
them all, but it seems that you don't split windows in which case this doesn't
matter.

Best regards,
Marcin

--
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

No comments:

Post a Comment