thank for your reply. after reading your reply, i just know it is an issue of OS instead of vim. so i won't try to find an answer to vim itself.
On 7月26日, 上午10时47分, Tony Mechelynck <[email protected]> wrote: > On 25/07/11 05:36,waremwrote: > > > hi, > > > i am using gvim in M$. i would like to know if it is possible to disable > > "window close button (X)" on the top right corner in gvim. my purpose is > > to prevent closing vim accidentally by pressing button X. > > > thank you. > > If you mean the button at the end of the OS titlebar, that depends on > the OS. I'm not sure that you can disable it at all, or disable it in > Vim without disabling it everywhere (which I suppose you don't want). > > I maximize the gvim window, which puts that OS close-button safely out > of the way. Of course it is next to the Maximize button, but I've > learned not to click the one when I mean the other (or the Minimize > button, which is next to them both). > > If you mean the close-tab button at the end of the Vim tabline, I don't > know about the GUI-style tabbar, but if you use a text-style tabbar you > can omit that button altogether by omitting the %999X code in (usually a > custom function for) the 'tabline' option. > > Best regards, > Tony. > -- > THE WOMBAT > > The wombat lives across the seas, > Among the far Antipodes. > He may exist on nuts and berries, > Or then again, on missionaries; > His distant habitat precludes > Conclusive knowledge of his moods. > But I would not engage the wombat > In any form of mortal combat. -- 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
