This help note explains the basics of vi: opening and closing a…
This help note explains the basics of vi:
- opening and closing a file
- moving around in a file
- elementary editing
vi has many other commands and options not described here. The following resources can help you get started using the vi editor, and are available at the UW University Book Store:
- “vi Tutorial.” Specialized Systems Consultants (SSC).
- “vi Reference.” Specialized Systems Consultants (SSC).
- “Learning the vi Editor.” Linda Lamb, 1990.
You may use vi to open an already existing file by typing
where “filename” is the name of the existing file. If the file is not in your current directory, you must use the full pathname.
Or you may create a new file by typing
where “newname” is the name you wish to give the new file.