switch-window
switch-window copied to clipboard
`switch-window-then-kill-buffer` doesn't behave the same as `kill-buffer-and-window` when there are two windows.
kill-buffer-and-window kills the current buffer along with the window.
switch-window-then-kill-buffer kills the other buffer along with its window.