Using the VI command line editor

Exit without saving

  • Press Esc
  • Type :q!
  • Press Enter

Save and exit

  • Press Esc
  • Type :x
  • Press Enter