Written by John Millaway

What is vim?
   It is a text editor for programmers.

How to run vim:
  gvim myfile.c   (GUI version)
   vim  myfile.c  (non-GUI version. Use this if you are logged on from home)


The most important commands:
  edit text       i
  stop editing    <ESC>
  write/save      :w
  quit            ZZ or :q
  undo            u


Note: vim has two "modes". You are either inserting text or you are
      issuing commands. If you panic, just hit <ESC>
      to get out of insert mode.


Here are some cool commands, (most of them start with a ':').
  make            :make
  next error      :cn
  previous error  :cp
  run a program   :!lab2
  split window    :sp hash.h
  next window     CTRL-W CTRL-w
  word completion CTRL-P  (use this while inserting text)
  colors!         :syntax on
  indent C code   :set cindent
  line numbers    :set number
  show matching() :set showmatch
  online help     :help
  find            /
  find-again      n
  create tags     :!ctags *
  jump to tag     CTRL-]
  jump back       CTRL-t
  goto matching() %
  goto next function ]]
  goto prev function [[


Vim has a million commands. Docs are at www.vim.org.