News for hackers. Stuff that matters.
Re:Helping a Million Developers Exit Vim by StavrosK on Tuesday May 23, 2017 @02:08PM (#14403628)
Because it's an editor, and if it just quit on me every time I mistyped Ctrl-C just because you can't be bothered to type the right command, I would be quite angry.
Re:Helping a Million Developers Exit Vim by scrollaway on Tuesday May 23, 2017 @03:45PM (#14404580)
My GUI editors quit on me every time I mistype Ctrl+Q. I don't really see the difference.
Re:Helping a Million Developers Exit Vim by bdamm on Tuesday May 23, 2017 @04:52PM (#14405217)
Since I switch between Mac OS X, Windows, and Linux hosts, accidentally typing ctrl-c when I meant to type cmd-c (copy outside of Terminal) isn't such an infrequent error. I'm thankful that ctrl-c isn't mapped to quit without saving.
Re:Helping a Million Developers Exit Vim by khedoros1 on Tuesday May 23, 2017 @05:08PM (#14405363)
Well, and my GUI editors don't respond to single-letter commands. It would violate my expectations of their UIs if they did. Similarly, in vim, I expect ctrl+q to send an XON signal to my terminal emulator...not to quit my editor.

They're different programs with different UI conventions. I don't expect them to act the same. And I especially don't expect vim to change, after having 25 years of its own precedent and an additional 16 through vi.

Re:Helping a Million Developers Exit Vim by chipotle_coyote on Tuesday May 23, 2017 @04:28PM (#14405020)
I would think that in both the ^Q and ^C case, the editor in question is capable of prompting "Really exit? (Y/n)" or something to that effect.
Re:Helping a Million Developers Exit Vim by root_axis on Tuesday May 23, 2017 @04:13PM (#14404863)
Right... I think the point is that this behavior is not preferable.
Re:Helping a Million Developers Exit Vim by Piskvorrr on Tuesday May 23, 2017 @05:04PM (#14405334)
I do consider that a misfeature, especially since Ctrl+W and Ctrl+A are one key away and often carry commonly-used commands.
Re:Helping a Million Developers Exit Vim by _asummers on Tuesday May 23, 2017 @05:27PM (#14405521)
I have an entire section of my emacs file devoted to unbinding keys that accidentally close my editor.