Vinay Doma wrote:
I'd like to be able to delete a buffer in a tab, but still retain the
tab. Right now, Vim just closes the tab. Is there any way I can
configure Vim to do this?


Example,

vim file1.txt
:tabe file2.txt
:bd (closes file2.txt as well as the tab. I'd still like to retain
this empty tab.)


Thanks,
Vinay


1) :bd doesn't really delete the buffer, it only marks it as "unlisted". ":ls!" (with bang) will still list it even after :bdel 2) Use :enew (which doesn't even mark the buffer as unlisted however) to get an empty tab. You may use :ls thereafter, followed by :bd <number> or :bw <number> (where <number> is the buffer number) to mark the buffer as unlisted, or wipe it out.

See
        :help :enew
        :help :ls
        :help :bd
        :help :bw


Best regards,
Tony.

Reply via email to