A.J.Mechelynck wrote: 
  >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.)
  >
  > 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.
  
    No need to :ls to find the previous buffer's number -- can use #

        :bd # or :bw # will do.

    See :help alternate-file
   
  > See
  >     :help :enew
  >     :help :ls
  >     :help :bd
  >     :help :bw
  >

Reply via email to