Saturday, October 17, 2015

Don't trigger BufLeave with preview window in popup completion menu

Hello,

when opening the preview window in vim using commands like :pedit etc... the cursor isn't moved and the window isn't changed. However the buffer is left for the preview buffer just for a moment triggering a BufLeave event type.

While I can just use :noautcmd pedit when opening the preview window manually to not trigger the event, if I'm using the 'preview' option in completeopt there doesn't seem to be a way to not trigger a BufLeave event when moving between the popup menu results that open the preview window.
Any solutions to this?

Regards,
John

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments:

Post a Comment