I have created a couple of scratch buffers:
:setlocal buftype=nofile
:setlocal bufhidden=hide
They appear in the buffer list as:
:ls
1 %a "[Scratch]" line 1
5 %a "[Scratch]" line 1
Is there any way of setting the name of a scratch buffer? The
special-buffers help says that, "The buffer name can be used to identify
the buffer", but that isn't terribly helpful when they are all called
simply "Scratch". I'd like to be able to give them meaningful names, without
having them associated with a file.
Thanks,
Douglas.
=======================================================================
This email, including any attachments, is only for the intended
addressee. It is subject to copyright, is confidential and may be
the subject of legal or other privilege, none of which is waived or
lost by reason of this transmission.
If the receiver is not the intended addressee, please accept our
apologies, notify us by return, delete all copies and perform no
other act on the email.
Unfortunately, we cannot warrant that the email has not been
altered or corrupted during transmission.
=======================================================================
--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_use" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---