On 2013-05-24 07:56, Gary Johnson wrote:
> > When I open help by ":help", it will add a new window for help. Is
> > there a way to replace the current window with help? Thanks.
>
> :help
> :only
This has unfortunate side-effects if you have multiple windows open.
Yukihiro's solution using ":set buftype=help" is the closest I've seen
to solving the OP's request (despite the warning in the help for
'buftype' that tells you it shouldn't need to be set manually) though
if the buffer has been modified, vim will warn you rather than losing
your changes. There doesn't seem to be a ":help!" (well, there is,
but it doesn't abandon changes in the buftype=help window; rather it
attempts to console you in your panic :-)
-tim
--
--
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
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
Friday, May 24, 2013
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment