vim-nerdtree-tabs
vim-nerdtree-tabs copied to clipboard
bdelete old buffer before opening a new buffer in that tab
trafficstars
It would be preferable to me if bdelete was called on the previous buffer when I press enter to open a file in the current tab. Additionally, if the bdelete fails due to the file needing to be saved, it cancels opening the new buffer, This way I won't have hidden buffers in the background that I have to navigate to and save before closing vim.