> Thanks Derek but that's not what I was asking. Here is my question
> rephrased.
> What is the vi equivalent of the C-x k [read kill buffer] emacs command.
> Naiden
> PS. vi(1) appears to not have this info.
You're imposing an emacs editing perspective on vi. In vanilla vi, you
cannot maintain two files with changes. You need to write or discard the
changes to the first to move on to the next. So the concept of a buffer
is not analogous between emacs and vi. The vi model is much more like
editing a file afresh everytime.
A single editor session can be used to make changed to several files, and
to copy text from one file to another, etc (the buffers are maintained
across all edits w/in a session).
The file list is set either at startup or with :n arglist. :n by itself
moves to the next file (:n! to discard changes). :e can edit a file by
name (:e! discards changes), using the special characters % and # to
represent the current and alternate file.
But thats pretty much it.