Monday, September 17, 2012

Returning to unnamed empty buffer

So, you start Vim without a file name.
Your is some unnamed empty buffer.
Then from the command line you goto some file to edit:

:e SomeFile

After editing the file, you then wish to return to the
original unnamed empty buffer.
I don't seem to figure out how to get back.
Does the original unnamed empty buffer have some sort
of reference that can be used to get back to it.

I have a plugin which can be invoked from such an
empty no-name buffer (as well as from a named buffer).
After the plugin runs, which involves editing some
file, I'd like the plugin to restore the user back to
their original file or, as the case maybe, no-name buffer.

Thanks.
Richard

--
Quis custodiet ipsos custodes

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: