Unsaved buffer warning when switching files/buffers
Use the :set hidden
option and Vim will hide the buffer until you come back to it.
You can also use :set confirm
to deal with the unsaved buffer warning more conveniently.
I think you can use :set hidden
.