Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

>If you are using vim, you should play per vim rules.

This issue is that studies show us vim's rules are wrong: modal editing is a source of confusion and error. I used vi[m] exclusively for 8 years or so and until the very last day I could still make major modal based errors.



> This issue is that studies show us vim's rules are wrong: modal editing is a source of confusion and error.

The so called studies show people who aren't used to modes are confused when using a modal editor.

> I used vi[m] exclusively for 8 years or so and until the very last day I could still make major modal based errors.

I have been using vim exclusively for 5 years now. And I stopped making modal based errors after 2 weeks. My anecdote cancels yours?

From what I have seen, people who leave vim in insert mode are the ones making mode errors. Insert mode isn't the rest mode for vim, normal mode is. You are bound to make errors when starting because out of habit, your mind assumes insert mode as the rest state.


>The so called studies show people who aren't used to modes are confused when using a modal editor.

"Don't listen to this study, listen to my firmly held belief". That's not how this works. If you want to combat a study you need to do so with another one, not by just saying throwing out untested assumptions.

>From what I have seen, people who leave vim in insert mode are the ones making mode errors. Insert mode isn't the rest mode for vim, normal mode is. You are bound to make errors when starting because out of habit, your mind assumes insert mode as the rest state.

Thanks for the condescension. Have you ever started to type a word and had your hands just finish it for you? Sometimes there will be some relatively large word that I type out commonly enough that when my hands notice the first few letters of it they'll type it out automatically with me having to go back and delete it and type out the similar starting word I meant to write. I even recall having my hands do it again on the correction once.

Having this kind of muscle memory is a killer for vi usage. Lots of times I have intentionally left the editor in insert mode for just a second while I grab some text from, say, a website to paste in. What I didn't realize is that my hands knew to always get back to command mode when changing screens so even though my mind had tried to save keystrokes my hands defeated me. The result? Pasted a huge document into command mode. Great. Similar sync issues came up regularly enough that I typically mashed Esc 2-4 times (in case there was, e.g. a command active that would write in the Esc char) rapidly before starting anything to ensure that I was where I thought I was.

In my experience, I wouldn't get the time savings I should have been getting due to having to slow down for the mode management.


> "Don't listen to this study, listen to my firmly held belief". That's not how this works. If you want to combat a study you need to do so with another one, not by just saying throwing out untested assumptions.

Yeah. Combat the studies that you totally provided the link to. Throwing claims around saying "scientists say that" or "studies have proved that" is surely not how it works.

> Thanks for the condescension.

What part was condescending? Leaving vim in insert mode causes errors? The rest state of vim is normal mode?

> Having this kind of muscle memory is a killer for vi usage for you

You are extrapolating personal anecdotes to absolutes.


To be fair you didn't link these studies you speak of either. Modes never seemed to bother me very much and I've been using vim for a while but I can understand the difficulties with it.

Also it occurs to me that I may do some of those things like mashing esc repeatedly just to be sure subconsciously.


> If you want to combat a study you need to do so with another one, not by just saying throwing out untested assumptions.

You can just show that the methodology is flawed, no need to repeat the experiments in all cases


"This issue is that studies show us vim's rules are wrong:"

If using vim is wrong, I don't want to be right.

Honestly, I can believe such studies, and I still would use vim.

One, my shoulder gets tired and sometimes hurts if I move back and forth between keyboard and mouse too much.

Two, by the time I move to the mouse and back, I could have done the equivalent twice on the keyboard and moved on.

Three, there is nothing sweeter than "How did you do that?" :)


>One, my shoulder gets tired and sometimes hurts if I move back and forth between keyboard and mouse too much.

>Two, by the time I move to the mouse and back, I could have done the equivalent twice on the keyboard and moved on.

Vim got this part right, and it ends up being better than Emacs in that regard: in Emacs you also don't need the mouse but all the chording requires moving the hands too much. Ideal would be to take Emacs' non-modal editing and combine it with Vi's simply edit mode: for example, say you are in "command mode" only if you hold down Caps lock, but when the button isn't held down the editor is always in insert mode.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: