r/programming • • Sep 24 '15

Vim Creep

http://www.norfolkwinters.com/vim-creep/
1.2k Upvotes

844 comments sorted by

View all comments

Show parent comments

134

u/whichton Sep 25 '15

Exactly this. Typing is never the bottleneck, thinking is. I probably spend 5-10x the time thinking about how to write a function than typing it out. And that is why an IDE is much more useful - it helps much more with the visualization of code than any editor.

32

u/Phrodo_00 Sep 25 '15

writing is often the bottleneck when editing configs, vim is awesome for that. Also, some IDEs have pretty nice vim modes.

I use IDEs for static typed languages (when IDEs actually help), but write Python in vim.

28

u/whichton Sep 25 '15

IDEs help with dynamic languages too. I use Python in Visual Studio, and I get autocomplete, debugging and REPL all inside VS. See Python Tools for Visual Studio. If you use Linux, you can try PyCharm from JetBrains, it is supposed to have similar features, though I have not used it personally.

9

u/zelnoth Sep 25 '15

You can use Pycharm for winfows as well. I preffer it over visual studio.

2

u/CookieOfFortune Sep 25 '15

I have been using Spyder on both Windows and Linux. It's a more Matlaby interface for the stuff I do.

→ More replies (3)

60

u/firstglitch Sep 25 '15

It is not about being a bottleneck. It is about maintaining the flow of your thought. When you are sufficiently proficient in VIM, you can do things involuntarily, and edit text without breaking the flow of your thought. For example, when you are driving you can zone out and think about other things, because our brain has developed sufficient autonomy for doing that task. In a similar way, the user interface provided by vim is something that is amiable to that kind of autonomous handling by the brain. Using a pointing device like mouse will never be like that.

88

u/[deleted] Sep 25 '15

Using a pointing device like mouse will never be like that.

Citation needed

24

u/serrimo Sep 25 '15

This is only anecdote; but what he described is exactly my situation.

I used Visual Studio, some Eclipse and JetBrains for many years before trying out vim. Vim is cool and all but it's not really more efficient. What really cool though is the ability to edit without moving the hands.

It's hard to describe, but the experience is comparable to the step you make when you type with hunt-and-peek vs touch-typing. You no longer need to look down for any single thing you do; and that is incredibly liberating.

If IDE works for you, great. IDE works for me too. I just wish that we can somehow make an IDE that you can edit w/o hunt-and-peek.

10

u/quicknir Sep 25 '15

All the IDEs you mentioned have pretty good vim emulators, I'd recommend checking one out. I use vrapper for eclipse.

4

u/[deleted] Sep 25 '15

You no longer need to look down for any single thing you do; and that is incredibly liberating.

Here's the thing I don't get: I don't need to look down to move my hand to the mouse, click on something, and come back to the keyboard.

5

u/jollybobbyroger Sep 25 '15

You're missing the point /u/serrimo is trying to make

→ More replies (3)
→ More replies (1)

0

u/[deleted] Sep 25 '15

[deleted]

45

u/Snow88 Sep 25 '15

You'd be impressed if using a mouse doesn't break my train of thought?

Account managers and project coordinators walk up to my desk all day to ask questions and check-in on how an implementation or change request are going. As soon as they leave I'm back to what I was doing.

If using a mouse distracted me I wouldn't be able to do my job.

→ More replies (5)

3

u/cosmicsans Sep 25 '15

A lot of editors have keyboard shortcuts. In PHPStorm I don't have to use my mouse, but I'm a web developer so I still have to consistently alt tab into a web browser.

3

u/throwaway131072 Sep 25 '15

I think this is an old person thing

→ More replies (4)

3

u/Andallas Sep 25 '15

"...With a mouse that's just not possible. You have to take your eyes away from whatever they were looking at, find the mouse pointer on the screen, move it to wherever you need to go..."

Have you ever used a mouse? I don't take my eyes off what I'm looking at to go 'find' the cursor, then follow it back to what I want to click, I look at what I want to click, then move the mouse there. It's called eye-hand coordination, and is the ability to make complex and small movements with your hands (fine-motor control) without having to stare at what you are doing. Similar to typing without looking at a keyboard, or playing a console game without looking at the controller. I honestly don't know anybody (though I'm sure there are some) that has to go through this convoluted process to click on something.

It's one thing to enjoy a product/tool and want to evangelize it because you find value in it. It's a whole other thing to just be disingenuous.

→ More replies (3)
→ More replies (6)

23

u/antpocas Sep 25 '15

I never got this "flow of thought" thing. Whenever I'm programming, typing doesn't break my flow of thought. By the time I start typing, I'm mostly done with thinking. I already know what I'm going to do in my head.

0

u/[deleted] Sep 25 '15

[deleted]

→ More replies (3)

21

u/apfelmus Sep 25 '15

In a similar way, the user interface provided by vim is something that is amiable to that kind of autonomous handling by the brain. Using a pointing device like mouse will never be like that.

Actually, there is evidence to the contrary: Keyboard vs Mouse. Quotes:

We’ve done a cool $50 million of R & D on the Apple Human Interface. We discovered, among other things, two pertinent facts:

  • Test subjects consistently report that keyboarding is faster than mousing.

  • The stopwatch consistently proves mousing is faster than keyboarding.

[..]

It takes two seconds to decide upon which special-function key to press. Deciding among abstract symbols is a high-level cognitive function. Not only is this decision not boring, the user actually experiences amnesia! Real amnesia! The time-slice spent making the decision simply ceases to exist.

10

u/namekuseijin Sep 25 '15

Originally published in the AppleDirect, August, 1989

they were trying really hard to sell the Mac over DOS, right?

mouse is only useful when editing images. For text, there's nothing like having editors aware of more useful chunks of text than mere line or character, such as sentences, paragraphs and code blocks... You want to remove last 3 paragraphs? Try the vi way or the mouse way...

and BTW, I hate all IDEs bloat. Helps nothing all those package lists and warning messages and code itself is reduced to a tiny window. These people are insane, but then, they're coding in java...

6

u/earthboundkid Sep 25 '15

"Only useful" is too strong. For example, I love the CLI but exploring a new file system with cd and ls is awful. It's way less efficient than just clicking on a folder name and seeing an expanding tree.

→ More replies (4)
→ More replies (9)

2

u/argv_minus_one Sep 25 '15

That'd be because using a mouse is already dead simple, and does not require such adaptation.

2

u/hugthemachines Sep 25 '15

I am as used to using a mouse as using a steering wheel. So it seems illogical to say you can zone out while driving but not while clicking.

→ More replies (13)
→ More replies (1)