I have :set hidden
set in my ~/.vimrc
.
First I did this:
vim foo bar
:bn
Enter- i
hello
Esc :bp
Enter:bd#
Enter
The :bd#
command leads to this error:
E89: No write since last change for buffer 2 (add ! to override)
This is expected behavior.
Then I did this:
vim foo bar
:bn
Enter- i
hello
Esc :bp | bd#
Enter:ls
Enter
This time :bp | bd#
Enter did not lead to any error. The output of :ls
Enter shows that the buffer for bar
is still present.
Why did the E89
error did not occur in the second set of steps?
E89 no write...
. Please try withvim --clean