Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
通常在vim中退出doing:q会起作用,但是,有时如果它不是主选项卡,退出只能通过doing来实现:clo(然后关闭:term窗口有点不同)。
:q
:clo
:term
是否可以编写一个键盘快捷键来关闭活动选项卡——不管它是由什么组成的?
也许:
nnoremap <Leader>x :bd!<CR>
有关更多信息,请参阅::h bd
:h bd