Closing tab pages through tab label context-menu

53 visualizzazioni
Passa al primo messaggio da leggere

Peter Odding

da leggere,
20 giu 2010, 15:59:4920/06/10
a vim_dev
Hi list,

I don't use the mouse much in Vim anymore but have nevertheless wondered
several times now why graphical Vim says the following when you
right-click a tab page label and click "Close" with a modified buffer:

E37: No write since last change (add ! to override)

I think the equivalent of ":confirm quit" would be more useful for those
few users who bother to use the tab page label context-menu. I realize
this is a minor detail in a keyboard oriented application but Vim is so
good that I can only find details to disagree with ;-)

- Peter Odding

Ben Fritz

da leggere,
21 giu 2010, 13:56:1421/06/10
a vim_dev
You could :set 'confirm' and you should have what you want.

Peter Odding

da leggere,
21 giu 2010, 15:09:4921/06/10
a vim...@googlegroups.com
Ben Fritz wrote:
> You could :set 'confirm' and you should have what you want.

Thanks for the hint, the 'confirm' option indeed does exactly what I had
in mind. Still a shame this isn't the default behavior when using the
context-menu, but I'll just add ':set confirm' to my ~/.vimrc and shut
up now :-)

- Peter Odding

Rispondi a tutti
Rispondi all'autore
Inoltra
0 nuovi messaggi