You can use vi commands in cases where you manually have to install Siveillance Control.

Modifying the Vi Editor

Before you use the vi editor for the first time, you have to modify the etc/vim/vimrc.tiny file.

  1. Open the file with the following command:
    sudo vi /etc/vim/vimrc.tiny
  1. Move the cursor to set compatible.
  1. Select the edit mode.
  1. Enter set nocompatible.
  1. Exit the edit mode.
  1. Save the file.

vi Commands

The vi commands can only be used in non-editing mode.

Command

Description

R

Replace mode: Characters are overwritten directly.

dd

Deletes a line.

yy

Copies a line to the buffer.

p

Writes a text from the buffer after the current cursor position.

i

Inserts text before the cursor.

Esc

Exits the edit mode.

:w

Saves the file.

:wq

Saves the file and exits vi.

:q!

Rejects changes.

q

Ends vi without saving.