Exiting Vim can be a bit tricky for new users, especially if they are not familiar with its command mode. In order to exit Vim in JavaScript, follow these steps:
Esc
key to enter command mode:q!
to force quit without saving changesEnter
to execute this command and exit VimAlternatively, if you have made changes and want to save them before exiting, follow these steps instead:
Esc
key to enter command mode:wq
to write changes and quitEnter
to execute this command and exit VimHere's an example of how to do it:
index.tsx154 chars9 lines
index.tsx143 chars9 lines
gistlibby LogSnag