Creating a file using the vi editor:

In order to search and replace text, use the following options:

  1. Type vi filename to create the file.
  2. Type i to insert text
  3. Press the Escape key to go to command mode.
  4. Type :wq to write the file and exit vi

If you are not sure what mode you are in, use the escape key, which always puts you in command mode.

Tip: If you press the escape key while you are in the command mode, the workstation will beep to remind you that you are already in command mode.