Live data from Hacker News

Helping a Million Developers Exit Vim

stackoverflow.blog

231–240 of 489 posts

Re: Helping a Million Developers Exit Vim

#231

Earlier quoted context omitted.

And worse vim is often the default EDITOR or software's fallback in case no EDITOR is set, so you get dropped into a vim edition buffer seemingly randomly.

I'm pretty sure that I've never seen any OS/Linux distribution set default EDITOR to vim. If EDITOR is set to vim, then someone must intentionally did that.

In OS X it is vim.

Re: Helping a Million Developers Exit Vim

#233
post #27
post #15

Earlier quoted context omitted.

Imagine you don't know that. Now try to exit vim.

Add in the bonus confusion that you may not have even been trying to run vim, and in fact may not know what it is (hey, everyone's a beginner some time), but have landed there due to a default $EDITOR value. [EDIT] also, a typical mid-level computer user's tendency to slap "ESC" when panicked. Ha!

> you may not have even been trying to run vi

git rebase -i

For example

Re: Helping a Million Developers Exit Vim

#234
post #198
post #140

Earlier quoted context omitted.

That looks more like emacs behavior though, vim rarely (never?) prompts the user for anything. You enter a command, you get a reaction (either an action like quits vim, or a message indicating something happened) -- which I personally prefer much more than getting annoying prompts.

You get a prompt if you try to exit and you haven't written the buffer to file

Not in (my) vim you don't. You get:

> E37: No write since last change (add ! to override)

Re: Helping a Million Developers Exit Vim

#236

Earlier quoted context omitted.

Why doesn't it just quit? That's as stupid as Python's >>> quit Use quit() or Ctrl-D (i.e. EOF) to exit The software knows perfectly well what I'm trying to do FFS.

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.

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

#239
post #97

Earlier quoted context omitted.

If you took the modal interface away from vim, you wouldn't have vim anymore. If you don't want a modal interface, don't use vim. You may as well expect Porsche to move the 911's engine to the front.

> If you took the modal interface away from vim, you wouldn't have vim anymore. If you don't want a modal interface, don't use vim. The vast majority of people don't use vim, so this "solution" has already been widely adopted. (Which in turn causes people who like vim to periodically wonder why more people don't use it.) The problem comes because there are scenarios where you don't have a choice as to which editor to…

sigh

Do we need to spoon-feed you people the solution for all of your problems?

Use SSHFS to mount your remote file system, and edit your remote files with your fancy, LOCAL, non-vim editor.

Re: Helping a Million Developers Exit Vim

#240
post #110
post #57

Earlier quoted context omitted.

Many of us get dropped into vim by accident.

That's your distro's problem, not vim's. There is no reason to fuck up vim just because distros are poorly configured.

You're changing the subject. You said:

> that no actual user of the software has? It's not an iphone, it isn't meant for use by the general public.

You're obviously wrong.

Millions of users of the software have that problem. It is used by the general public. It's irrelevant whether they intended to be users of the software or not. No one decides on a distro based on the default text editor, and some people are still learning how to use nix and won't know to change it right away.

Plus, from vim.org:

> It's not just for programmers, though. Vim is perfect for all kinds of text editing, from composing email to editing configuration files.*

Sounds like vim is for use by the general public to me. It just isn't very good at usability.

Post reply on HN