Editing files

A quick tour of vi
    Starting vi
    Entering text
    What to do if you get stuck
    Saving files and quitting vi
    Moving around a file
    Deleting and restoring text
    Searching for text
    Replacing and modifying text
    Substituting text
    Repeating and undoing commands
    Including the contents of another file
    Accessing the shell
    Editing more than one file
    Using buffers to cut and paste text
    Placing markers

Using keyboard shortcuts
    Running other programs from inside vi
    Sending text through a filter
    Defining abbreviations
    Storing a command in a buffer
    Mapping key sequences

Configuring vi
    Saving frequently used commands

Using ed
    Starting ed
    Saving files and quitting ed
    Moving around in ed
    Editing text in ed

vi commands