0

For my vim plugin I try to catch an event when quickfix window is closed. I did it with BufWinLeave event. But it does not work when I have quickfix open on multiple tabs, because of 'Not when it's still visible in another window.' from BufWinLeave documentations. But I did not find any other event, that can tell me that some random window is closed. Do you such event or how to do that?

2
  • Why do you have the same quickfix buffer open in multiple windows? You can use loclists instead of quickfix lists if you need multiple windows. Oct 25, 2015 at 8:47
  • It it not my plugin exactly that loads results to a window, my plugin is related to the window control (open, close) and it happens that the quickfix window is open in different tabs, where I need an event that a window is closed.
    – Yuki
    Oct 25, 2015 at 11:01

1 Answer 1

3

vim v8.2.3591 added a WinClosed event.

2
  • 2
    Welcome to Vi and Vim!
    – D. Ben Knoble
    Feb 28, 2022 at 22:03
  • @D.BenKnoble, Thanks, I see the first answers queue is well-manned!
    – Sagar
    Mar 1, 2022 at 4:26

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.