vim - 如何将所有 vssplitted 窗口设为选项卡窗口?

标签 vim editor

如何让所有vssplitted窗口成为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)。

关于vim - 如何将所有 vssplitted 窗口设为选项卡窗口?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/7913858/

相关文章:

Vim鼠标滚轮垂直滚动一行

logging - vim 编辑器,使用日志文件导航源代码

vim - 通过Vim中的 ':'将行范围拉到剪贴板

javascript - 动态更改 fck 编辑器内容

editor - 代码片段的良好 WSYIWIG

c++ - 你能搜索或过滤 Vim 补全吗?

Vim autocmd(保存文件、运行代码格式化程序、重新加载文件)

unix - 你知道任何针对程序员的 "best practice"或 "what works"vi 教程吗?

javascript - 在 javascript 中获取 tinyEditor 值

vim - 在vim中从 'iskeyword'中删除一个字符