Does anybody know how to really close a tab in vim? When I type t on a file to open it in a tab and then type :q, it looks like ist closed. But when I type :ls I see that its still open.
1) in the shell run "vim ."
2) hit "t" on a file
3) type ":bd<enter>"
You still have 2 tabs open. One with the file explorer and one with an empty file. Probably because the file explorer has type "nofile" or something, so vim things the buffer you just closed was the last one. Im not sure why its not closing the tab. It might be a bug.
Is there a way to tell vim "When I type :bd close the frickin tab, even if its the last one!"?
1) in the shell run "vim ."
2) hit "t" on a file
3) type ":bdel<enter>"
The tab is still open.
But I understand it's not a very good solution.