Live data from Hacker News

Stack Overflow: Helping One Million Developers Exit Vim (2017)

stackoverflow.blog

11–20 of 149 posts

Re: Stack Overflow: Helping One Million Developers Exit Vim (2017)

#11
post #10

Why is this such an issue? It is no harder exiting vim than it is exiting plain old vi, nvi or any other vi clone. In fact, the very same keystrokes that you use for exiting vi can be used in vim as well.

Did you consider the case where the user has never used any vi variant before?

Re: Stack Overflow: Helping One Million Developers Exit Vim (2017)

#12
post #8

kill -9 `pidof vim` Also, whoever decided to have vim as the default editor in the windows port of git.. this is brain damaged . Just use notepad already!

Given that notepad only supports unix newlines since a few months ago, I can see why that one wasn't the default

Sure, why not something like pico / nano? Seems more friendly to occasional users, who are the people most likely to hit the default.

Re: Stack Overflow: Helping One Million Developers Exit Vim (2017)

#13
Hot take: Vim should include a simple “Type :qa! to quit” line in its startup message. Something makes me think it would clear up a lot of confusion for first time users.

EDIT: I notice now that it has a “Type :q to exit.” I never noticed that before, and I use Vim most days, so I can see how others might miss it too.

Re: Stack Overflow: Helping One Million Developers Exit Vim (2017)

#14
post #6

This is probably the #1 problem with Unix-based systems in general for new users. There are so many ways to exit a command prompt depending on the application! Off the top of my head: Ctrl+D, q, :q, exit, quit(), Ctrl+C, Ctrl+X. Countless times have I been locked in an application and needed to cycle through those memorized commands to escape. Imagine doing that as a newbie.

ctrl+d is the most dangerous kind! Since that one can also exit the terminal itself. gdb takes, depending on the situation, one time ctrl+d or two times ctrl+d to quit. It's a trap! So since gdb usually takes two times, muscle memory learns two times, but then in that rare instance where it required it only once... logged out of ssh :(

In bash: IGNOREEOF=10

In zsh: setopt ignore_eof

In ksh: set +o ignoreeof

In tcsh/csh: set ignoreeof

Normally I just do this for login shells, so I can quickly exit out of subshells.

Re: Stack Overflow: Helping One Million Developers Exit Vim (2017)

#15

Hot take: Vim should include a simple “Type :qa! to quit” line in its startup message. Something makes me think it would clear up a lot of confusion for first time users. EDIT: I notice now that it has a “Type :q to exit.” I never noticed that before, and I use Vim most days, so I can see how others might miss it too.

It does this when pressing control+c (a common kill key combo)

Re: Stack Overflow: Helping One Million Developers Exit Vim (2017)

#17

Hot take: Vim should include a simple “Type :qa! to quit” line in its startup message. Something makes me think it would clear up a lot of confusion for first time users. EDIT: I notice now that it has a “Type :q to exit.” I never noticed that before, and I use Vim most days, so I can see how others might miss it too.

Anyone easily confused by how to quit vim should not be using a computer at all, much less vim.

Re: Stack Overflow: Helping One Million Developers Exit Vim (2017)

#18

Hot take: Vim should include a simple “Type :qa! to quit” line in its startup message. Something makes me think it would clear up a lot of confusion for first time users. EDIT: I notice now that it has a “Type :q to exit.” I never noticed that before, and I use Vim most days, so I can see how others might miss it too.

In this particular SO question, the asker has already read the "Type :q to exit" message, but it isn't working as they're already in Insert mode.

Really it should be "Type :q to exit"

Re: Stack Overflow: Helping One Million Developers Exit Vim (2017)

#20
post #8

Earlier quoted context omitted.

Given that notepad only supports unix newlines since a few months ago, I can see why that one wasn't the default

Sure, why not something like pico / nano? Seems more friendly to occasional users, who are the people most likely to hit the default.

Would you drive a Yaris if you had a Ferrari in your garage?

Didn't think so

Post reply on HN