I open several files in Vim by, for example, running
vim a/*.php
which opens 23 files.
I then make my edit and run the following twice
:q
which closes all my buffers.
How can you close only one buffer in Vim?
buffervim
I open several files in Vim by, for example, running
vim a/*.php
which opens 23 files.
I then make my edit and run the following twice
:q
which closes all my buffers.
How can you close only one buffer in Vim?
Best Answer
A word of caution: “the
w
inbw
does not stand for write but for wipeout!”More from manuals:
:bd
If you know what you’re doing, you can also use
:bw
:bw