anhnmncb schrieb: > Ben Schmidt <[EMAIL PROTECTED]> writes: > >> 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. > > ok.. I think I should give up
that is too early >> because I know nothing about C. Thank you :) > >> Ben. you can check out vimtweak http://vim.sourceforge.net/scripts/script.php?script_id=687 the following command hides the title bar, thus it cannot be clicked by accident: :call libcallnr("vimtweak.dll", "EnableCaption", 0) -- Andy --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_use" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
