Is there any script that closes vim if there are only utility buffers open? I have seen some scrips for NERDTree (Close vim NERDtree on close of file), but none that is more general.
An example, because I am unsure if it is clear what I mean.
- Tagbar, Magit and a file are open
- I close the file
- only utility buffers are open (both buffers are hidden from :ls) -> vim closes
Is there an easy way to do this?