Introduction
The TabBar plugin (tabbar.vim) is a great method of displaying and switching through all the open files (i.e. buffers) inside vim. This tip should also work for similar plugins like minibufexpl.vim. In addition to MiniBufExplorer, the TabBar plugin allows you to press Alt+1 to go to the first buffer, Alt+2 to go to the second, .. Alt+0 to go to the 10th buffer.
When you're using those plugins, you may try to delete buffers with:
:bdelete
After this command, however, the buffers begin to behave in undefined ways, and it gets worse if you're using other plugins that display information in a separate buffer (such as Project to display your project files on disk). Often the only way you can get out of the situation is to reopen vim.
Closing buffers in TabBar
After a longer session of work, you end up with a number of open tabs (i.e. buffers), and it becomes a chore to switch between the ones you're currently editing.
To close the ones you don't need any more, all you have to do is to place the cursor on the TabBar window split buffer (Here's how to switch between window splits ). Then, place the cursor over the buffer you want to close. Finally, press the "d" key to close that buffer. It's that easy, but this very useful functionality isn't documented anywhere.
This way, nothing will break when you remove a buffer. Now enjoy using your vim!