The current silent! noautocmd bufdo bw might hang waiting for input
when a swap file gets detected (E325), caused by :bufdo bwipe loading
previously unloaded buffers, and the :silent! then hides the
error/warning, but Vim waits for input still by default (when not using
SwapExists/v:swapchoice).
This patch uses bwipe with a list of existing buffers, which does not
trigger E325.
It does not use :silent intentionally, to get a message about buffers
being wiped.
The current
silent! noautocmd bufdo bw
might hang waiting for input when a swap file gets detected (E325), caused by:bufdo bwipe
loading previously unloaded buffers, and the:silent!
then hides the error/warning, but Vim waits for input still by default (when not using SwapExists/v:swapchoice).This patch uses
bwipe
with a list of existing buffers, which does not trigger E325.It does not use
:silent
intentionally, to get a message about buffers being wiped.