The simplest syntax of the vi command is as follows
vi [-r [line number]] [file name...]
If no file is specified, an empty screen will appear. If an existing file is specified, the contents of that file appears on the screen. The -r option lets you start from the last if no line number is given. If a line number is given, then you start from that line to the file. If more than one file is specified, you can edit them one by one.