On Tuesday, April 23, 2013 10:30:59 AM UTC-5, Thiago de Arruda wrote:
> On 04/23, Tony Mechelynck wrote:
> 
> > 
> 
> > So you can always open help for subject foobar in the current window
> 
> > by doing
> 
> > 
> 
> >   :view $VIMRUNTIME/doc/help.txt | help foobar
> 
> > 
> 
> 
> 
> This isn't working for me, while the help doc is opened, the topic for 
> "foobar"
> 
> opens in another window.
> 
> 
> 
> I have even tried :view '$VIMRUNTIME/doc/help | setf help | help foobar' with 
> no
> 
> luck, the help topic always open in another window.
> 
> 
> 
> I'm amazed that something that seems so simple is so difficult to accomplish 
> in
> 
> the most powerful editor :)

I think the difference is that the :help command looks for a window with the 
'buftype' option set to "help". :help 'buftype' says you're not supposed to set 
that manually, but I don't think there is anything preventing you from doing 
so. This should work slightly better:

  :view $VIMRUNTIME/doc/help.txt | set buftype=help | help foobar

It seems to work for me, anyway. I'd set up a command to do all this for you 
rather than typing it all every time, though.

Or just use :tab help.

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to