vi Editor Commands Quick links... General Startup Counts Cursor Movement Screen Movement Inserting Deleting Copying Code Put Command Find Commands Miscellaneous Commands Line Editor Mode ex Commands Substitutions Reading Files Write File Moving Shell Escape General Startup To use vi: vi filename To exit vi and save changes: ZZ or :wq To exit vi without saving changes: :q! To enter vi command mod..