> "au VimLeavePre * w" only works when I exit vim with something like
> ":q!" but not if I close my terminal window.
>
> Error detected while processing VimLeavePre Autocommands for "*":
> E749: Empty buffer
>
> VimLeave[Pre] is being called, but the buffer is not saved, probably
> because it's closed before that event is triggered. Is there another
> event that gets triggered during the closing sequence that will allow
> me to autosave, or another way to do this?
Do you already have the 'autowriteall' option set?
--
Mrs Abbott: I'm a paediatrician.
Basil: Feet?
Mrs Abbott: Children.
Sybil: Oh, Basil!
Basil: Well, children have feet, don't they? That's how they move
around, my dear. You must take a look next time, it's most
interesting. (Fawlty Towers)
/// Bram Moolenaar -- Bram@Moolenaar.net -- http://www.Moolenaar.net \\\
/// \\\
\\\ sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ ///
\\\ help me help AIDS victims -- http://ICCF-Holland.org ///
--
--
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.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/20221028212331.6965E1C11B0%40moolenaar.net.
Friday, October 28, 2022
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment