0

For example:

I'm editing a file, and I use command-line mode (:help) to open help file
but this help file is be opened in the some tab with my file
so, I want to open/detach this help window to a new tab

How can I do this?

6
  • Take a look here -stackoverflow.com/questions/3131393/… - Your question was already answered 3 times on stackoverflow. I think you will find more answers about this subject there :)
    – user34720
    Jan 15, 2016 at 10:26
  • yes, it really helps, thanks, and there a slit difference, I want open the exist window content to a new tab.
    – lovespring
    Jan 15, 2016 at 10:53
  • @nwildner lovespring, could one of you please post the solution from SO as an answer here? Or, if not, please delete the question. Otherwise it will just stay here, unanswered.
    – terdon
    Jan 15, 2016 at 13:03
  • @lovespring - WHY do you want to open help on your current window and AFTER THAT move to a new tab, when you can directly open it already on another tab? Deeply in your heart you need to operate this way? :tab help should be enough...
    – user34720
    Jan 15, 2016 at 13:14
  • @nwildner No, I type "help", it already opened in the exist tab and with a new window. And also, I use netrw to explore files, when I middle click left mouse on the file, the file also open in the exist window, not in a new tab. I used to edit file in a new tab.
    – lovespring
    Jan 17, 2016 at 0:40

1 Answer 1

3

If you want REALLY want this, you should use one of these after enter :help :

:tab split

Or

:tabedit %

And this will make a new copy of the current page(help) be positioned on a new tab. If you want to move, hit Ctrl-W (release) Shift-T will do the trick. I think that this key combination is what you really want.

If you want to be proactive and open your help on a new tab, :tab help will be enough

Related Stuff:

2
  • :tabedit % means edit the current window (then the buffer which this window belongs to) in a new tab. this is what i want ! thinak you.
    – lovespring
    Jan 18, 2016 at 13:59
  • How to close the prev window, and "open new"+ "close the prev" = detach.
    – lovespring
    Jan 18, 2016 at 14:00

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .