How do I close all open tabs at once?

后端 未结 8 1069
-上瘾入骨i
-上瘾入骨i 2021-01-29 17:28

If I have 10 tabs opened, I have to close each one using \":q\" separately.

How can I close them all at once?

8条回答
  •  深忆病人
    2021-01-29 17:53

    That can be done with the following command (in normal or escape mode):

    :tabdo :q
    

    "tabdo" apparently executes the command for all the open tabs.

提交回复
热议问题