List all open buffers:
:ls
Close all open buffers:
%bd!|e#|bd#
%bd!
foreach buffer deletee#
open the last buffer for editingbd#
delete the [No Name] buffer
Source: https://stackoverflow.com/questions/4545275/vim-close-all-buffers-but-this-one