Running tmux kill-server kills all sessions, windows, panels, and all processes running on them. This is a way to completely close everything related to the current start of tmux.
The above, unfortunately, will not solve the problem with vim swap files - you will receive them anyway. I solve the swap problem by having the following line in .vimrc :
set noswapfile
As you might have guessed, it disables swap files in vim. If you regularly save files to vim and you have a reliable computer, setting the above parameter may be quite acceptable.
source share