Useful vi options

Option Default Action

autoindent noai automatically indents

   each line of text

number nonu prefix lines with

   line number

term $TERM sets type of terminal

   to use

scroll scroll=11 sets number of lines

   scrolled with ^d and z

shell sh=/bin/sh defines the shell used

   for UNIX commands.
   This value is taken
   from the SHELL
   environment
   variable

shiftwidth sw=8 sets the number of

   spaces for use with
   autoindent

wrapmargin (wm) wm=0 specifies number

   of spaces lines are
   broken before right
   edge of the screen