vi commands quick reference
Unix vi commands quick reference
General Notes:
1. Before practicing using this vi tutorial, type the following command followed by a carriage return: :set showmode
2. vi is not VI. It is case sensitive!!! So make sure Caps Lock is OFF.
Requirements:
In order to work correctly the vi need correct terminal type (TERM) setting. The TERM setting depends on the type of terminal you have. Commonly used TERM types are vt100, vt220 and ANSI. In most cases vt100 will work fine. In case vi is not able to understand the TERM you have given, it starts in open mode giving you a line by line display. Generally TERM is taken from .profile or /etc/profile, but can be set at the command line as:
$TERM=vt100
$export TERM
echo $TERM will display the current TERM set.

