Reputation: 171
I'm a beginner in vim and I've a simple question.
What is the difference between :q and :bd command when we have many buffers ?
Thank you for your answers.
Upvotes: 13
Views: 5891
Reputation: 560
:bd (destroy empty pane)close current buffer without changes. if want you change file must save then bd
:q close file. but changes not save.
I hope it complete
Upvotes: 1
Reputation: 195209
:q
quit current window.
:ls
:bd (without argument)
delete(unload) current buffer
you can test it with :ls
to monitor the buffer changes.
Upvotes: 29