























In order to close a tab in vim, in normal mode type :tabclose (or the shorthand :tabc).
This will close the current tab page and all of its windows.
If you only have one tab open, vim will give you an error. Use :q instead.
:tabc[lose][!] Close current tab page.
This command fails when:
- There is only one tab page on the screen.
- When 'hidden' is not set, [!] is not used, a buffer has
changes, and there is no other window on this buffer.
Changes to the buffer are not written and won't get lost, so
this is a "safe" command. >
:tabclose " close the current tab page
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。