Final answer:
To quickly save and exit the vi editor, press ESC to switch to normal mode, type :wq to save changes and quit, and then press Enter.
Step-by-step explanation:
To quickly save your work and exit the vi editor, you should follow these steps:
- Press the ESC key to ensure you are in normal mode.
- Type :wq to write the changes to the file (save) and quit.
- Press Enter to execute the command.
Just pressing Ctrl + C, Ctrl + Z, or Ctrl + X will not save your changes and quit vi. Ctrl + C will cancel any running command inside vi, Ctrl + Z will suspend vi, and Ctrl + X doesn't have a default action in vi that saves and exits.