Vim / gVim中是否有命令将两个或多个选项卡组合到一个拆分窗口中?

时间:2011-01-06 14:19:59

标签: split vim tabbed

是否可以在gVim的单独选项卡中打开两个打开的文件,并将它们组合成一个带有split / vsplit窗口的选项卡?我更喜欢是否有办法指定要加入哪些标签,但即使是与之相反的标签:标签球也足够好。

由于

4 个答案:

答案 0 :(得分:9)

很多手工但是......

:tabnew
:buffers "note the numbers
:split
:bn " where n is the number of 
<CTRL-W><CTRL-W>
:bn " for the other file
:tabonly " not necessary, closes every other tab

或者你可以为它创建一个函数,它要求缓冲区编号,然后创建选项卡,并关闭所有其他选项卡(对于打开的文件)......

答案 1 :(得分:8)

答案 2 :(得分:1)

答案 3 :(得分:1)

这个对我有用: TabMerge

如果您正在使用 Plug ,只需将以下内容添加到〜/ .vimrc中即可:

sender html <a [routerLink]="['../../../print/attendance/',{data:userDetails | json}]">link</a> receiver ts ngOnInit() { this.route.params.subscribe(params=> { this.data=JSON.parse(params['data']) } ); }