Table of Contents

Getting Started into the world of VI

About

A getting started page for VI editors.

Steps

Install a VI editor

Open a file

To open the file, run

# for neovim
nvim /path/to/file
# for vim
vim /path/to/file
# for vi
vi /path/to/file

The contents of the file must appear.

The file is created if it does not exist yet.

How to edit a file

To work in VI, you navigate between two modes:

When you want to edit/modify a file, the logical sequence is:

nvim tmp.txt
Hello World

Vim Insert Mode

Quit

You would type the command,