Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check the value of v:exiting #12

Open
glacambre opened this issue Dec 20, 2021 · 0 comments
Open

Check the value of v:exiting #12

glacambre opened this issue Dec 20, 2021 · 0 comments

Comments

@glacambre
Copy link
Owner

GUIs could already get this by listening to the VimLeavePre (or VimLeave) autocmd and checking the value of v:exiting. In fact, neovim-qt already does this.

https://github.com/equalsraf/neovim-qt/blob/e7a51dd58a4a10147d34e93d20b19eeeffc69814/src/gui/runtime/plugin/nvim_gui_shim.vim#L29-L33

https://github.com/equalsraf/neovim-qt/blob/e7a51dd58a4a10147d34e93d20b19eeeffc69814/src/gui/runtime/plugin/nvim_gui_shim.vim#L19-L22

Originally posted by jamessan in neovim/neovim#16715 (comment)

@glacambre glacambre changed the title GUIs could already get this by listening to the VimLeavePre (or VimLeave) autocmd and checking the value of v:exiting. In fact, neovim-qt already does this. Check the value of v:exiting Dec 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant