Is there a spacemacs command that both closes the window and kills the buffer? In other words, the equivalent of Vim's
kill-buffer-and-window to close a buffer and its window. But this will keep emacs running. If you also want to kill emacs (the equivalent of
:q) then try
evil-quit-all if you're using evil, and
save-buffers-kill-terminal for standard emacs quit.
spacemacs binding for
Spacemacs has recently added two shortcuts for
SPC b x and
SPC w x.
In addition to the above answers, in particular the one by sid-kap; for people not on the development branch, i.e. people using the current stable release, the command
kill-buffer-and-window is bound to
SPC u SPC w d as described (currently) in the key bindings section of the documentation.