dhruvasagar / vim-prosession

Handle vim sessions like a pro
254 stars 22 forks source link

Fix wiping of existing buffers #47

Closed blueyed closed 6 years ago

blueyed commented 6 years ago

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.

dhruvasagar commented 6 years ago

Thanks!