You can open a file in several ways. These are shown below:
vi <cr> Entering "vi" by itself at the command line lets you open a new file.
vi /etc/passwd This command lets you open the "/etc/passwd" file so you can make editing changes to this file.
When you first open a file with the "vi" editor, you are in "command mode".