VIM is a great text editor but it can be confusing at the begin.
Signals are captured by the program therefore by default it’s not possible to exit using CTRL-C. However it’s possible to INTERRUPT VIM using CTRL-Z.
VIM is a modal editor, the default editor mode is “normal”, to go back to “normal” mode use ESC.
From normal mode it’s possible to exit without saving using:
?To exit simply use
To save and exit use either
Another option is to leverage other functionality to exit to the system and use system commands to exit for instance, from “normal” mode:
:!killall vimShare on Twitter Share on Facebook