I'm trying to setup vim to save all files when it receives SIGTERM, here's the relevant vim command:
au VimLeave * if v:dying | wa | endif
This should write all buffers when vim exits. From another terminal if I kill vim with a modified buffer I get the following error:
Vim: Caught deadly signal TERM
Vim: preserving files...
Error detected while processing VimLeave Auto commands for "*":Vim: Finished.
E749: empty buffer
If I kill vim without modifying any buffers it doesn't report any error.
Does anyone knows why this is happening or how to fix it(or another workaround for my problem: saving all files when vim receives SIGTERM)
--
--
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/groups/opt_out.
No comments:
Post a Comment