Saving to another file
To quit
vi
and save the contents of the buffer to a new file:
:w
filename
:q
This site maintained by
webmaster@cs.auckland.ac.nz