why not do something simple like

command! -nargs=+ H execute "silent help <args>" | only

in your vimrc?

On Sat, Dec 26, 2020 at 10:22 AM lacygoill <vim-dev-git...@256bit.org>
wrote:

> For me, it doesn't seem to work; that is, I still get two windows instead
> of one, because :h still splits the current window, even when the latter
> displays a help file. Maybe I'm missing some option though.
>
> Is there a way to automate that?
>
> Try this:
>
> au CmdlineLeave : if getcmdline() =~# '^h\%[elp]\s' | exe 'e ' .. &helpfile | 
> endif
>
> —
> You are receiving this because you are subscribed to this thread.
> Reply to this email directly, view it on GitHub
> <https://github.com/vim/vim/issues/7534#issuecomment-751371195>, or
> unsubscribe
> <https://github.com/notifications/unsubscribe-auth/ACY5DGAQGQ62EE3HV3EEU6TSWYETBANCNFSM4VHCRLFA>
> .
>
> --
> --
> You received this message from the "vim_dev" 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
>
> ---
> You received this message because you are subscribed to the Google Groups
> "vim_dev" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to vim_dev+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/7534/751371195%40github.com
> <https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/7534/751371195%40github.com?utm_medium=email&utm_source=footer>
> .
>

-- 
-- 
You received this message from the "vim_dev" 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

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_dev+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/CALfSX1zo1FE%2BidnT7OJCS0%2BGm8ZxRG9szLj0tzDR1PK9kGoJmw%40mail.gmail.com.

Raspunde prin e-mail lui