On Mon, Dec 7, 2015 at 10:11 AM, Christian Brabandt <[email protected]>
wrote:
> Just always keep a modified buffer around. This can possibly
> be a hidden scratch buffer, whose sole purpose is to prevent a
> quick exit.

I wondered whether some kind of autocmd would help here.  I
don't have time to check into it sufficiently myself, but I did
find this old thread from 2005 entitled "Using VimLeave to
Prevent Exiting":
http://vim.1045645.n5.nabble.com/Using-VimLeave-to-Prevent-Exiting-td1143011.html

The post states that the autocmd idea won't work when closing
Vim via the window's "X" close button.  But maybe something has
changed in the past 10 years, so I thought I'd bring up the idea
just in case.

Michael Henry

-- 
-- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to