Earlier quoted context omitted.
That's the point. That behavior is contrary to the expectation. Ctrl+C should not display a message: Ctrl+C should quit immediately.
Coming from the Windows world, I am happy that Ctrl+C doesn't make assumptions and quit. Imagine attempting to copy something and having your file close without warning.
Helping a Million Developers Exit Vim
201–210 of 489 posts
Re: Helping a Million Developers Exit Vim
#202I'm somewhat amazed but mostly amused that the Vim developers care so little about user experience that they continue to ignore that people have trouble with exiting their tool and refuse to adapt to a more expected convention for exiting it.
____________
[1] As in command and edit modes.
Re: Helping a Million Developers Exit Vim
#203When I told my thesis advisor (in about 2001) that I was looking into backend web development as a career, he gave me a post-it note with the following content: chmod 0644 [Esc] :wq Best advice I've ever gotten.
Yes, please do chmod your SSH key, netrc, and other sensitive files as world readable! Sincerely, that other guy on your multi-user OS.
Re: Helping a Million Developers Exit Vim
#204Re: Helping a Million Developers Exit Vim
#205Earlier quoted context omitted.
I'll bet between the reflog and aliases you could do that.
I'm requesting the exact syntax I just wrote. EDIT: the replies to this don't get how feature requests work. yes, I could write this basic feature myself. thanks.
#! /bin/bash
git reset HEAD~1 && git checkout .Re: Helping a Million Developers Exit Vim
#206Earlier quoted context omitted.
On many editors ctrl-c is the copy key. Not a good key to exit on...
It's the other way around - mapping copy to ctrl-c was a bit stupid...
Re: Helping a Million Developers Exit Vim
#207Re: Helping a Million Developers Exit Vim
#208Earlier quoted context omitted.
I think this is a poor argument. If it's the one singular thing that's frustrating this many users, that's a reason to focus on particular on fixing it somehow. You also need to take into account that most users encountering this problem are not deliberate vim learners: they ended up in vim by accident. That said, as others have pointed out, the vim developers can't really be blamed here as it's just a very hard prob…
>they ended up in vim by accident. Sounds like a distro problem.
macOS is another potential culprit - can't remember the default there.
Re: Helping a Million Developers Exit Vim
#209The most viewed question is even more relatable: https://stackoverflow.com/questions/927358/how-to-undo-last-... You can get the top viewed questions here: http://data.stackexchange.com/stackoverflow/query/53109/ques...
hey Linus, undo last 1 git command (as though it had never been entered): git undo 1 thanks.
[alias]
undo = reset HEAD~1 --mixedRe: Helping a Million Developers Exit Vim
#210Earlier quoted context omitted.
So it actually doesn't, it's basically just a hack around the fact that the repl is basically: while True: print(str(eval(input()))) Case in point: >>> x = str(quit) >>> x 'Use quit() or Ctrl-Z plus Return to exit' I suppose you could implement quit.__str__ as sys.exit(0), if you really wanted to avoid this problem.
> So it actually doesn't It does, it just does not care. > it's basically just a hack around the fact that the repl is basically: I know what a REPL is. Here's an idea: it's not difficult to add an exit special case to the REPL. > Case in point: Case in point: the developers added a "help text" to tell users to go fuck themselves, knowing exactly what users wanted to do and refusing to do it. quit's repr didn't appea…