Vim 如何将所有vSplited窗口设置为tab窗口?

Vim 如何将所有vSplited窗口设置为tab窗口?,vim,editor,Vim,Editor,如何将所有vSplited窗口设置为tab窗口?您可以先执行CTRL-W,然后执行T 或:wincmd T 从文件中: *CTRL-W_T* CTRL-W T Move the current window to a new tab page. This fails if there is only one window in the current tab page. When a count is spe

如何将所有vSplited窗口设置为tab窗口?

您可以先执行CTRL-W,然后执行T 或
:wincmd T

从文件中:

                        *CTRL-W_T*
CTRL-W T    Move the current window to a new tab page.  This fails if
        there is only one window in the current tab page.
        When a count is specified the new tab page will be opened
        before the tab page with this index.  Otherwise it comes after
        the current tab page.

请注意,
:windo winc T
不工作,因为只有当您保持在同一选项卡中时,
windo
才会工作。但是,您可以执行
:windo wincmd T|tabprevious
。(这要感谢Randy Morris)。

不,有三个或更多的窗口是vsplited,现在如何使所有窗口都成为tab窗口,C-W T只将当前窗口作为tab。您可以做
:windo wincmd T | tabp
而不是宏。@Randy Morris:谢谢,我误读了windo的文档(不能代替can)。更新答案!