r/ProgrammerHumor • • Apr 20 '15

vim

Post image
1.3k Upvotes

427 comments sorted by

View all comments

70

u/iLostMyAcc Apr 20 '15

I really don't know why people use vim. Can anyone explain it to me?

86

u/noop__ Apr 20 '15

Because it let's me modify text faster, and more precisely than any other text editor in existence. And the portability (console based, *nix) makes it so I can have the same text editing workflow on all of my machines including the several thousand headless servers I manage.

6

u/cheald Apr 20 '15

I've yet to meet a vim user who can code in fewer keystrokes than I can in Sublime.

It's boss for headless servers though.

30

u/noop__ Apr 20 '15

Who cares about fewer keystrokes? I want speed, precision, and environmental continuity.

3

u/cheald Apr 20 '15

Sublime is fast, precise, and portable, as well. I can't use it in headless environments, obviously, but I'm happy to use vim there.

4

u/hk__ Apr 21 '15

What does “precise” mean for a text editor?

10

u/noop__ Apr 20 '15

portable

can't use it in headless environments

Using it in headless environments is what I originally meant by portable. vim works pretty much everywhere, and comes pre-installed on pretty much everything. Including that server you're consoled into in the middle of the night trying to get back online (though luckily, this is dying with applications being redesigned for IaaS.) Sublime is portable to all the places I don't care about, so I haven't really given it a fair shake, but it doesn't fit my use case anyway. If it works for you, by all means have at it.

6

u/cheald Apr 20 '15

I'm using portable in the "copy some files somewhere and you can use it" sense, ie, no installers. I tend to use Sublime for code and vim for systems administration.

0

u/[deleted] Apr 20 '15

[deleted]

→ More replies (16)

4

u/Tysonzero Apr 20 '15

That's because with sublime you spend time using the mouse, way more than an extra keystroke or two.

And if you try to claim that you don't use the mouse, then you definitely use more keystrokes than the average VIM user.

13

u/cheald Apr 20 '15 edited Apr 20 '15

I work in Sublime entirely without the mouse. I also use vim (and am probably an "average vim user").

I regularly pair with co-workers who use vim (and have exclusively for years), and the amount of typing they do drives me crazy; maybe I just haven't met the uber-vim users yet. I'm faster in Sublime than they are in vim.

→ More replies (4)

17

u/b93b3de72036584e4054 Apr 20 '15

What's wrong with using the mouse ? We are developers, not data-entry clerks. I spend way more time thinking about what I write than actually writing it.

17

u/memeship Apr 20 '15

Yeah, this is my argument. Actually writing code does not take up the majority of my time. I don't need to spend a year learning a text editor to shave off "keystrokes" from my dev time.

11

u/[deleted] Apr 20 '15

Exactly. If you're a developer and you're typing into a code editor nonstop, you're doing something wrong. Good software comes down to its design - how easy it is to extend, maintain, and understand - which requires more thinking and planning than coding. Text editors probably don't even make it into the list of bottlenecks for software engineers.

I have nothing at all against vim, but I would bet that the vast majority of vim advocates are sysadmins (or people who have a lot of experience in that field), as vim is the best text editor accessible via nearly all terminals, whereas most programmers will probably choose something other than vim as their text editor, since most beginners learn within a GUI environment.

5

u/dreadpirate15_ Apr 21 '15

Devops guy here. I use vim all the time... For ops tasks. I use an IDE for Dev. Use the right tool for the job!

→ More replies (1)