r/programming • • May 23 '17

Stack Overflow: Helping One Million Developers Exit Vim

https://stackoverflow.blog/2017/05/23/stack-overflow-helping-one-million-developers-exit-vim/
9.2k Upvotes

1.1k comments sorted by

View all comments

Show parent comment

-8

u/[deleted] May 23 '17

So that's a reason why it was difficult to exit Vim 25 years ago. What about now?

Also I'm not sure that is even true. The first release of Vim was apparently in November 1991. Not many people using teletypes then! Hell Windows 3.1 was released 5 months later.

24

u/Deto May 23 '17

How else should Vim exit? ESC is already a super-important key to change modes within Vim and nobody who uses Vim would want them to change that just to make it easier for first-timers to exit.

-8

u/[deleted] May 23 '17

Ctrl-Q would be fine. Or Ctrl-C which apparently is dedicated to poorly telling you how to exit in a different way. Why not just have Ctrl-C exit?

14

u/000xxx000 May 23 '17

All of those combinations already have other uses in vim, which are baked into decades of muscle memory for millions of users.

36

u/DonaldPShimoda May 23 '17

You're looking at the wrong date. vim is short for VI iMproved — it was built on vi. vi was released in 1976.

22

u/knowits May 23 '17

And vi was based on [ex](https://en.wikipedia.org/wiki/Ex_(text_editor)) (1976) which was based on [ed](https://en.wikipedia.org/wiki/Ed_(text_editor)) (1969) which apparently was based on [qed](https://en.wikipedia.org/wiki/QED_(text_editor)) (1965)

6

u/cleeder May 23 '17

It's editors all the way down!

2

u/DonaldPShimoda May 23 '17

Hey, I didn't know that! That's neat! Thanks! :)

2

u/Talran May 24 '17

And here I still use vi at work because a number of our systems don't have vim.

-11

u/[deleted] May 23 '17

Ah good point. Well the question still stands why haven't they improved the intuitiveness of the interface since 1976.

7

u/wasabichicken May 23 '17

My guess, because 1) developer resources are scarce, and 2) in the last decade, UI trends have come and gone like underwear.

In the last decade Microsoft introduced the much-maligned ribbon, the hamburger button appeared on phones, Ubuntu Unity replaced the traditional Windows'esque Gnome desktop, Windows 8 brought tiled buttons for a desktop, and people started "swiping right" to hook up. Any software project that decides "we should revamp our user interface" needs to start with an investigation into how they want to revamp it, and if they go with "just do it like everyone else" they can expect to be tasked with revamping it again a year or two down the line. I expect a proper investigation, one that yields lasting results, to take several master's theses, a doctorate or two, and a stipend or scholarship from Google.

Naturally, developers are reluctant to throw out the baby with the bathwater.

17

u/DonaldPShimoda May 23 '17

How do you make a fully customizable, extensible, macro-able editor "intuitive"?

You don't. There are too many features to be able to make it "intuitive". Essentially, you should be reading the manual if you're trying to use vim. It's a totally different kind of editor.

It's almost like comparing Photoshop to Paint. Yes, they're technically both "drawing programs", but Photoshop does so much more. Most of it isn't immediately intuitive if you've never used an Adobe product before (why is the shortcut for the Rectangle Select tool "M"?), so you have to look around the menus and read a bit of the manual and look up tutorials to actually be any good at it. But once you've really learned it, you can do stuff there that Paint can't even remotely come close to.

Ninja edit: the people who actually use vim don't think it's "unintuitive". It's just an initial learning curve thing. Why would they change things to make it "intuitive" when those changes would disrupt the workflows of all of the established users who've been at this for longer than many new users have even been alive?

5

u/Shaper_pmp May 23 '17

the people who actually use vim don't think it's "unintuitive". It's just an initial learning curve thing.

To be fair, that's pretty much what most people mean when talking about how "intuitive" a UI is - how easy it is to pick up vs. how much you have to consciously dedicate yourself to learning it.

Technically intuitiveness doesn't imply "for a compelte beginner with no prior experience of the UI", but that's what it's come to colloquially mean to almost everyone in the industry.

5

u/DonaldPShimoda May 23 '17

I suppose that's fair, but I guess what I meant was that newcomers often try to look at vim like just a regular text editor. "Why is it so hard to write in this thing if it's a text editor?" But it takes an entirely different perspective to "get" vim.

So, in other words, I meant that's it's not "unintuitive" because there's nothing to intuit — it's not comparable to really anything else around today. I dunno if I'm really explaining myself well, haha. Do I make any sense?

2

u/Shaper_pmp May 23 '17

Yeah - you're making a lot of sense.

The only thing I'd modify is that in my experience most people aren't asking "Why is it so hard to write in this thing if it's a text editor?" - they're asking "What the fuck is this screen, why have I suddenly been dumped into it, and how the hell can I exit it?". ;-p

2

u/DonaldPShimoda May 23 '17

"What the fuck is this screen, why have I suddenly been dumped into it, and how the hell can I exit it?".

Yeah, that was pretty much my experience too haha. It's confusing for sure! I'm definitely not saying that vim is immediately obvious to a newbie; rather, I'm just saying that it shouldn't have to be.

Plus it's practically a rite of passage at this point, haha.

→ More replies (8)

2

u/yotamN May 23 '17

How would you want them to improve? When you try to exit with ctrl+c it tells you exactly how to exit, I don't understand what the problem is.

2

u/[deleted] May 23 '17

a) Why tell me how to exit "properly" if you already know I want to exit? Just exit! Python also really annoyingly does this.

b) The instructions are clearly rubbish - look at the SO question this whole post is about!

c) They should probably support Ctrl-Q too. That is standard.

6

u/yotamN May 23 '17

Why tell me how to exit "properly" if you already know I want to exit?

Maybe because ctrl + c is also being used for other actions (exit insert mode, abort otherwise) so making it exit only sometimes will still be confusing for some users.

They should probably support Ctrl-Q too. That is standard.

Ctrl-Q is also already being used (by the terminal actually), do you want to change existing behavior so new users that probably won't use the editor for more than a few minutes could exit easily?

2

u/SmelterDemon May 23 '17

You can map any combinations of keys you want to quit. C-W is the start of the window commands tho, I wouldn't want to accidentally quit when I'm trying to switch windows.

1

u/evaned May 23 '17

Except we're talking about people who don't even know enough about Vim to know how to exit. What matters for them is defaults. That you can customize is pretty irrelevant in that context.

2

u/eldelshell May 23 '17

You don't. You can use any of the other editors out there.

2

u/Malgas May 23 '17

vim is an extension of vi, which was first released in 1976.