C-z does not “exit” Emacs, it just puts its process to sleep in the background. You can go back to the Emacs process you opened by entering “fg” in the terminal.
C-z is actually a standard terminal control code, it works with most processes (I expect vim too) by sending the SIGTSTP signal.
BTW, you can use C-z in to exit Emacs in a terminal, and minimize Emacs when using a GUI.
C-z does not “exit” Emacs, it just puts its process to sleep in the background. You can go back to the Emacs process you opened by entering “fg” in the terminal.
C-z is actually a standard terminal control code, it works with most processes (I expect vim too) by sending the SIGTSTP signal.