>> I think the only way you could do it would be to compile your own Vim >> and make some changes to the source code to disable or ignore the close >> button. It's quite probably not hard--just have to find the spot where >> the close event is handled and ignore it instead, so the close button >> does nothing. Then always quit Vim using :q or the menus. So if you >> really want this feature, I'd say that's the way to go. >> >> Ben. > > I suspect that in that case the OS might (like mine does) pop an alert: > > Program "gvim" is not responding. Do you want to terminate it?
No, I don't mean for Vim to ignore a request from the OS to quit, such as at shutdown time, but ignore the pressing of the close box widget; and when I say ignore, I don't mean that from the OS' point of view. Rather, it should accept the message like normal and just not do the traditional window-closing thing on receiving it, but rather, just discard it, similar to what happens if you click the button and get a Save Changes dialog to which you reply 'Cancel', except without the need to actually press 'Cancel'. It should definitely respond as usual to a quit request, or yes, it would become dangerous. But having a different behaviour for pressing the close box widget is harmless. Cheers, Ben. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
