Forrest logo
back to the <Esc>:q!<Enter> tool

nvim:tldr:9b244

nvim: Quit without saving.
$ :q!
try on your machine

This command is used to quit the current editor session forcefully without saving any changes. Let's break it down:

  • <Esc>: This indicates the press of the Esc key. This key is commonly used in various editors and text-based interfaces to switch from insert mode to command mode.

  • :: After pressing Esc, you enter command mode. The colon (:) is used to enter a command in this mode.

  • q!: This is the command to quit the editor without saving any changes. The letter "q" stands for "quit" and the exclamation mark (!) indicates forceful quitting, discarding any unsaved modifications.

  • <Enter>: Finally, after entering the command, pressing Enter executes it, triggering the immediate quitting of the editor.

Therefore, the entire command <Esc>:q!<Enter> can be understood as follows: Switch to command mode, enter the quit command without saving, and press Enter to execute it.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the <Esc>:q!<Enter> tool