Live data from Hacker News

How Did Vim Become So Popular?

pragmaticpineapple.com

31–40 of 507 posts

Re: How Did Vim Become So Popular?

#31
Vi (and ed) are the only text editors required to be included in the POSIX spec. A base Unix (and most Linux) installs will have some version of vi or vim installed by default.

If I'm working on someone else's box this pretty much guarantees I can edit files with my basic vi knowledge without having to install a different editor.

Re: How Did Vim Become So Popular?

#32
Something I've come to rediscover is how good vi/vim is on a slow network connection. Our sharp networking team route me from London to Sydney so I can remote back to my London PC.

Seeing what you type several seconds after you typed it is reminiscent of the 90s and dial up connections.

Having familiar vi keybindings in so many applications these days has been a productivity saver.

Re: How Did Vim Become So Popular?

#33

We also need to understand that a subset of vi features is part of the POSIX standard, so any POSIX system will need to have "vi". vim is the logical choice there. So as a result vim has become the reference implementation for the POSIX vi featureset.

All of vi is specified by POSIX, but vi is only a subset of vim.

Re: How Did Vim Become So Popular?

#34
post #26

real answer : because redhat and debian had replaced elvis with vim as the default vi early on. I don't remember the exact drama, but maybe something to do with the license.

elvis was great! The simple monocrhome color schemes were beautiful, and it had a snappiness (even on a 486 back then) that I'm still missing nowadays.

Re: How Did Vim Become So Popular?

#35
Disappointed the article went straight from punch cards to video terminals without mentioning teletypes.

> Having that thing show up on computers in those days was pretty tricky, and some considered it a resource hog.

Well in the 60's and 70's, you didn't necessarily even have a display, you might be using a physical teletype. `ed` is built for that.

Even when you had a display, it could be slow. The VT05 from 1970, only went up to 2400 baud. And if you were using a modem back then I think you were definitely most likely connected at 300 baud or below.

Re: How Did Vim Become So Popular?

#36
Speaking personally, I've been a professional developer for almost decade and even in my relatively short career I've seen a lot of technologies come and go. I was reluctantly roped into it by my first boss, an enthusiastic Vim advocate. And since, almost nothing else (save for maybe git) beat learning vim from a return on investment perspective. From the default mac OS installation to some old Fedora box that has not been patched since the early 2000s, Vim (or its simpler brother Vi) has always been there!

And once I got used to it, I couldn't really imagine using computers any other way. I'd go so far as to say that the 'home row' concept of vim is the ergonomic ideal of keyboard based computing, and I now try to mimic that behavior everywhere -- the vimium extension in chrome, various vim plugins for vs code and sublime etc. If you're on the fence, I'd urge you to give in!

Re: How Did Vim Become So Popular?

#37

Earlier quoted context omitted.

Isn't that what neovim is trying to do?

AFAIK it still tries to stay mostly compatible with regards to how it is controlled, doesn't it? So while the internals are perhaps new, the frontend is not. But I think Kakoune https://kakoune.org would fit the bill

Kakoune is definitely an attempt at redoing the vim concept from scratch. I spent a few weeks trying it out and attempting to get used to it. Ultimately, I came away from it feeling disappointed.

I think the basic premise of multiple cursors editing as a preferred model (which is what Kakoune does) is flawed. Why? Because large-scale scale changes are the exception, not the rule. By emphasizing multiple cursors, Kakoune actively makes it harder to do the normal thing people do in a text editor: jump around a file and make specific edits to individual lines. Instead, a bunch of normal movement commands (such as forward and backward search) leave extra cursors in your wake, forcing you to press an extra key to dismiss them otherwise you'll get erroneous edits that might not even be visible from where you are in the buffer. This is not a good thing.

The other basic premise that Kakoune addresses (that vim commands lack visual feedback) is not even an issue for experienced vim users who type commands quickly from muscle memory. The edits happen when the command finishes and you don't get distracted by intermediate results. For global substitution, you can always append the `c` flag to add a confirmation prompt to each substitution. That alone obviates much of the motivation for Kakoune's model.

Re: How Did Vim Become So Popular?

#38
post #32

Something I've come to rediscover is how good vi/vim is on a slow network connection. Our sharp networking team route me from London to Sydney so I can remote back to my London PC. Seeing what you type several seconds after you typed it is reminiscent of the 90s and dial up connections. Having familiar vi keybindings in so many applications these days has been a productivity saver.

One editor which used to be great at this is sam, which was explicitly designed to work across slow links, by being split into a frontend running locally, and a backend being run on the target host: http://sam.cat-v.org

Re: How Did Vim Become So Popular?

#39
Vim (bindings/modality - ESC mapped to CAPS) are good for my hands. I don’t get tired. Before vim my hands would get tired after some time. Now it feels like I can keep going forever.

Now I use vim for everything and it’s bindings in my browser, email client, todo list app, etc.

Re: How Did Vim Become So Popular?

#40

Disappointed the article went straight from punch cards to video terminals without mentioning teletypes. > Having that thing show up on computers in those days was pretty tricky, and some considered it a resource hog. Well in the 60's and 70's, you didn't necessarily even have a display, you might be using a physical teletype. `ed` is built for that. Even when you had a display, it could be slow. The VT05 from 1970,…

Or the display might be a single line of 16-segment LEDs for interacting with the machine, and "output" was on paper. Another reason to keep the visuals to a minimum.
Post reply on HN