I should get a command prompt rather than a popup when I try to close an unsaved window


I should get a command prompt rather than a popup when I try to close an unsaved window



I am using git configuration mentioned here

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

I have seen others use vim where in similar cases they get a prompt at the bottom which is something like

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

What configuration change I need to do so that I start getting command prompt rather then GUI prompt?

I am using macvim.




How can I read RSS in VIM?

1:



Undo Close Tab in Vim
What you're looking for is:.
Shortcut to open file in Vim
:set guioptions+=c 


Vim for Word (or something like it)


How can I emulate Vim's * search in GNU Emacs?

2:



Vim forgetting its history when a file becomes read-only
command W is a standard the MacOS close tab key stroke.


What are the benefits of learning Vim? [closed]
You can use vim's own :q or :q! to close it and forget any changes to the buffer..
How to get better bracket matching/alignment in VIM?


3:


If you're using macvim (currently my favorite incarnation of Vim for the Mac), the prompt you get, while GUI-ish like the rest of Macvim, is keyboard-controllable: return to accept the default Save, Esc to Cancel, command-D to mean Don't Save (i.e.

quit and lose changes).

If you're using Apple=supplied vim on Apple's Terminal.app, the popdown from command W (which doesn't offer Save but just Cancel and Close) is similarly keyboard controllable: Esc to Cancel, return to accept the default Close (and lose unsaved changes, if any).. If you're using some other version of vim, it would help if you let us know which one!-).



94 out of 100 based on 64 user ratings 214 reviews