Vi commands

To Invoke vi on the command line type: 'vi filename'

Command mode and input (insert) mode

Vi starts in command mode. The positioning commands operate only while vi is in command mode. You switch vi to input mode by entering any one of several vi input commands. Once in input mode, any character you type is taken to be text and is added to the file. You cannot execute any commands until you exit input mode.To exit input mode, press the escape (Esc) key.

Format of vi commands: 'vi [count][command]' (count repeats the effect of the command)

Below some commands to get you started:

© Copyright 2001-2022 CCRMA, Stanford University. All rights reserved.
Created and Mantained by Juan Reyes