(evi.info)File and buffer management


Next: Window management Prev: Setting up Evi Up: Top

File and buffer management
==========================

   Vi's file management commands have long tried to mimic having
multiple buffers, and as such, work well enough to use in an emacs
setting.  They of course have to take on slightly different meanings,
since it makes little sense to emulate the limitations of the vi/ex
model that presumably you are trying to avoid by using Evi!

`:e'
     Edit a file in the current window.  With no argument, brings in a
     new copy of the file (useful if it has been subsequently modified
     on disk).  `:e!' will override any complaints about the current
     buffer being modified, and discards all modifications.  With a
     filename argument, edits that file in the current window (using
     the copy already in the editor if it was previously read in).
     There is no difference between `:e! filename' and `:e filename',
     because in Evi we don't need to worry about the disposition of the
     current file before editing the next one.  Use `:e#' as a
     shorthand for editing the most recently accessed buffer not
     visible in a window.

`:E'
     Same as `:e', but edits the file in another window, creating that
     window if necessary.  If used with no filename, this command
     splits the current buffer into two windows.

`:n'
     Switch to the next file in buffer list that's not currently
     displayed.  Rotates the current file to the end of the buffer
     list, so repeated use of `:n' will cycle thru all buffers.

`:N'
     Same as `:n', but switches to another window, or creates another
     window and puts the next file into it.

`:b'
     This is an extension.  This command switches the current window to
     the specified buffer, e.g. `:b foo' would switch to the buffer
     named `foo' (if it exists).  By default `:b' switches to the next
     buffer not displayed.  `:b!' will create the buffer if it doesn't
     exist.

`:B'
     Analogous to :E and :N.

`:k'
     Another extension.  This command kills the named buffer.  If given
     no argument, kills the current buffer.  `:k!' will kill the buffer
     even if it is modified.

`:wk'
     Writes the current buffer, and kills it.

`:W'
     Another extension.  This command writes all modified buffers,
     querying the user before each write.  `:W!' will write all buffers
     with no questions asked.

`:Wq'
     As above, then exits emacs.  See `ZZ' below.

   The ex commands which accept filenames as arguments can be file
completed using space or tab.  Similarly, `:b' and `:k' will
buffer-name complete.  One thing you might find handy is `:b TAB' to
see a list of buffers.  Use `C-c' or backspace to escape this.


automatically generated by info2www