It’s not often but sometimes you get stick when you VIM a file on Linux. Well to get out is fairly easy but nobody remembers.
If your in editing mode press escape to get to command mode. Then type in one of the commands below and smack that enter key like you need it to work.
- :wq to save and quit (write changes and quit).
- :q! to quit now and not save changes.