The :bufdo command lets you execute a command on all buffers. In this case, you want to run :bufdo bdelete to close all open buffers in one go.
The :bufdo command lets you execute a command on all buffers. In this case, you want to run :bufdo bdelete to close all open buffers in one go.