$ vi paint
If paint already exists, vi opens the existing file. If this is a new file, vi creates it. For the purposes of this example, paint should be a new file.
Note that you can also start vi without specifying a file name by just typing vi. You can then name the file later when you exit vi.
The last line of the screen, called the status line, shows the name of the file and the number of lines and characters in the file. When you create a new file, as is the case with the example, the status line indicates that it is a new file.