thinca / vim-quickrun

Run commands quickly.
zlib License
769 stars 102 forks source link

Close the Outputter when the related source file is closed #190

Open gmnr opened 4 years ago

gmnr commented 4 years ago

I'm trying to implement a way to close the outputter when the sourced buffer is closed.

This is what I got so far, but it's not working:

augroup QuitQuickRun
au!
    autocmd BufUnload * if (bufname("b:[quickrun output]")) || &buftype == 'nofile' | q | endif
augroup END

Is there a link between the buffer where the code executed is located and the related output that I can use?

Thanks in advance