Scratch buffer
:help buffers
, scrolling down to scratch
says:
Contains text that can be discarded at any time. It is kept
when closing the window, it must be deleted explicitly.
Settings:
:setlocal buftype=nofile
:setlocal bufhidden=hide
:setlocal noswapfile
The buffer name can be used to identify the buffer, if you
give it a meaningful name.
Special buffers
Special buffers are
- help buffer (used for help files)
- spell buffer (used for spelling information)
The help buffer never uses a swap file.
The spell buffer is never displayed and does not have a file name.