vi中的tab操作

来源:互联网 发布:天猫淘宝商城手机专卖 编辑:程序博客网 时间:2024/05/18 02:53

vim -p fil1 file2 file3 在新标签中打开这些文件。

:tabe[dit]                              *:tabe* *:tabedit* *:tabnew*
:tabnew        在当前的标签后打开新标签。

:tabn 下一个tab
:tabp 上一个tab

:tabn [N] 跳到第N个tab.
:tabs 显示所有的tab,在当前tab会一个">"的标识。

:tabs                                                                                                                            
Tab page 1
templates/templates/sysadmin/user_ftp_dirs.tpl
Tab page 2
>   templates/templates/sysadmin/servers.tpl
Tab page 3
templates/templates/sysadmin/tasksinprocess.tpl
Tab page 4
templates/templates/user/user-ftp-files.tpl

:tabc[lose][!]  Close current tab page. 关闭当前tab页。
:tabc[lose][!] {count} Close tab page {count}.关闭第count个tab页.
:tabo[nly][!]   Close all other tab pages. 关闭所有其它标签页。

更多帮助请键入命令 :help tab-page-intro

原创粉丝点击