News for hackers. Stuff that matters.
Re:Helping a Million Developers Exit Vim by tcoff91 on Tuesday May 23, 2017 @01:45PM (#14403346)
No, it really is that easy.

If you try to <ctrl>-c, the program even tells you to use :q

It's just become a meme at this point.

Re:Helping a Million Developers Exit Vim by masklinn on Tuesday May 23, 2017 @02:05PM (#14403590)
> If you try to <ctrl>-c, the program even tells you to use :q

And then you do and it helpfully adds ":q" to the buffer.

You're still in vim.

Re:Helping a Million Developers Exit Vim by splawn on Tuesday May 23, 2017 @02:17PM (#14403718)
If you hit ctrl-c then you are no longer in insert mode (ctrl-c acts like esc for some reason), so no, it won't add anything to the buffer and ":q" will get you out.

I don't blame people for being confused though.. I remember getting stuck in vim all the time back in the day because of a default $EDITOR value.

Re:Helping a Million Developers Exit Vim by jayflux on Tuesday May 23, 2017 @01:51PM (#14403413)
But why would i be pressing <ctrl>-c in the first place if i don't know any Vim commands?

Edit: ah quit foreground process, ignore me

Re:Helping a Million Developers Exit Vim by tcoff91 on Tuesday May 23, 2017 @01:54PM (#14403463)
<ctrl>-c is not a vim command. It's a universal terminal command.

<ctrl>-c is how you kill the foreground process in bash, zsh, sh, windows command line, etc...

If you don't know about <ctrl>-c you shouldn't be attempting to use a terminal based editor to begin with. Vim can't be blamed for people not knowing how to use a terminal.

Re:Helping a Million Developers Exit Vim by zeptomu on Tuesday May 23, 2017 @01:56PM (#14403476)
Because it is the standard command to kill (i.e. send SIGINT) running programs in a terminal? E.g. ping, top, etc. all quit using Ctrl-C.