Make "q" command work even more like in VIM
Review Request #114039 - Created Nov. 22, 2013 and submitted
I think the ":qall" was missing some code to work. On top of that the patch includes the "!" operator = "I don't want you to ask me if I want to save the changes, just quit".
Actually, if you're up for it, we can probably make this a little more readable and add e.g. const bool allDocuments = !re_quit.cap(2).isEmpty(); const bool save = !re_quit.cap(1).isEmpty(); const bool doNotPromptForSave = !re_quit.cap(3).isEmpty(); (or somesuch), then change the occurrences of each "re_quit.cap(X).isEmpty()" accordingly.