Enough to use vi

i - insert mode

esc - command mode

:wq - write to file and quit

:w [file name] - if you didn't enter a file name to begin with

:ZZ to save and quit

:q! to quit without saving
  1. :w [filename] // if you arnt already writing to a file
    :ZZ to save and quit

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.


Hi, guest!