anhnmncb wrote: > Yes, I still want to have a function that can let me confirm when quiting > even all > buffers have saved. > > Actually, I want map it to a key, so when I'm away, I can call it to > prevent someone from closing my gvim by accident. > > I know mksession is a better solution, but I still want a function like > that :)
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. --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
