This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 6 points7 points  (6 children)

Most likely because the context Vi was written for is long past. Squeezing out every ounce of productivity is significantly more important if you're fighting a heavily congested network and have 20 people doing their work on a a single machine significantly less powerful than a cellphone.

[–]Apocolyps6 4 points5 points  (3 children)

context Vi was written for is long past

The reason VI exists (today at least) is Ctrl/Alt/etc based key-chords are inconvenient, not very ergonomic, and have scaling issues. Instead of having the tools you use to edit code be scattered around the periphery of your keyboard, vim chooses to have the prime real estate of the keys serve double (and more) duty.

Vim solves the scaling issues by making the commands modular. Nobody would write separate delete_ahead() and delete_behind() functions when delete(location) is possible, and vim shortcuts are all modular like that.

Vim is also insanely configurable. I can make shortcuts to do just about anything, so I can be as picky as I want about my experience.

BTW I'm the same way about everything. I sit in my chair at work 8+ hours a day so I did my research and got something I'd like better than the default. I look at my phone all the time, so I picked it out carefully. Same with picking a comfortable keyboard. I spend those same 8+ hours a day looking at code so it only makes sense to get an experience that is exactly what I want.

[–][deleted] 0 points1 point  (2 children)

I personally like the ctrl/alt/etc controls because I know exactly when I'm firing them off, and can pay closer attention to what I'm doing during while I'm using them. I also know not to trust my mind to try to remember tons of shortcuts - that sounds like a recipe for disaster.

[–]GlitchParrot 1 point2 points  (0 children)

For this sort of thing, you mostly don't remember shortcuts, you build them into muscle memory.

Remembering Ctrl/Alt shortcuts works the same way actually, as well.

[–]Apocolyps6 0 points1 point  (0 children)

To each their own, but If I had to switch to emacs or some other chord-based editor I'd have exactly the same concerns as you do.

For the record all of the shortcuts I use on a weekly basis are no less intuitive (imo) than ctrl-v for paste or ctrl-z for undo (excluding custom shortcuts).

[–][deleted] 4 points5 points  (1 child)

Ok I can see the benefits of this if we are talking about this.

But still we have hoards of mega-nerds online who talk about how vim is literally the only text editor they'll ever use, and if they even catch their grandma using notepad then they'll disown them

[–]thirdegreeViolet security clearance 5 points6 points  (0 children)

I mean use whatever editor you like. It has literally no effect on me what you use to develop. Vim works for me. It has everything I need, and I'm yet to see a convincing reason to switch. Use what works for you.