Tutorial
Vim (vi Improved)
Working with Multiple Files; Crash Recovey; Marking Your Place


Vim

Working with Several Files

There are numerous ways to work with several files in vim; we will introduce them as the situation appropriate to each arises.

Recovering an Edit from a Crash

Bad thing happen to good people — if vim crashes, or your ssh client loses the connection, you can recover your edit by going back to the directory and executing:
vi -r <filename>
where <filename> is the name of the file you were editing (not the swap file name or anything else — vi takes care of all that behind the scenes. All you need to say is that you wish to recover your edit session.)

Multiple Windows

You can create multiple windows on the vi screen; here are some useful commands:

Marks - Remembering Where You Were