How to use Vi: a minimalist guide

Occasionally you may find Vi is the only editor available. To use it to edit somefile.txt type:

vi somefile.txt

Now type:


This puts you into insert mode and you can type. Type something.

When you are done, type the Esc key to go back to command mode. Type:


(must be upper case) to save the file and quit.

If you don’t want to save, type:


to quit without saving.

At this point I am tempted to add all sorts of other tips, like / to search, but then this would not be a minimalist guide!

Related posts:

  1. A few good things about Bing – but where is the webmaster’s guide?
  2. Why doesn’t Adobe’s AIR dev guide mention SQLite?
  3. Microsoft OneDrive and OneDrive for Business: a guide for the perplexed
  4. Mysteries of trapping errors in PowerShell
  5. Facebook

Comments are closed.