I have to get a command line and not a popup when I try to close an unsaved window

I am using the git config mentioned here

If I create a new tab and then if I do commmand W (I am using a mac) to drop that window, then I get a popup that I have to use the mouse for.

I've seen others use vim where in cases like this they get a prompt at the bottom, something like

C for cassel N for No. S far Save (not sure).

What configuration change do I need to make to start getting a command line prompt rather than a GUI prompt?

I am using macvim.

+2


source to share


3 answers


What are you looking for:



:set guioptions+=c

      

+3


source


the W command is the standard MacOS keystroke combination. You can use vim's own :q

or :q!

to close it and forget about any changes to the buffer.



0


source


If you're using macvim (currently my favorite incarnation of Vim for Mac), you'll get a prompt, and the GUI, like all other Macvims, is keyboard-driven: go back to accept the default Save, Esc to Cancel, command-D means " Do not save "(ie exit and play changes). If you are using Apple = supplied vim on Apple Terminal.app, the popup from the W command (which does not offer "Save", but just "Cancel" and "Close") is similarly controlled by the keyboard: Esc to cancel, return to the default acceptance Close (and lose unsaved changes, if any).

If you are using any other version of vim it will help if you tell us which one! -)

0


source







All Articles