News for hackers. Stuff that matters.
Re:Why Vi Rocks by umvi on Wednesday April 10, 2019 @09:47PM (#19630437)
Vim is like Dvorak. The cognitive burden for remembering which key maps to what is high unless you use it 24/7.
Re:Why Vi Rocks by griffinheart on Wednesday April 10, 2019 @10:28PM (#19630628)
Your problem with Vim is that you don't grok vi. [0]

I agree with you that if you don't use a specialist tool 24/7 you'll be slow, but that is expected vi optimizes for expert users not for novice users.

In the same way that if I don't use Photoshop and then just want to do something simple in it, it's going to take me a lot of time and am probably going to forget how to do it because I don't use it enough.

0 - https://stackoverflow.com/questions/1218390/what-is-your-mos...

Re:Why Vi Rocks by civility on Wednesday April 10, 2019 @10:26PM (#19630620)
I have a friend who used to use Vi(m) with his Dvorak keyboard at home, and Emacs with his qwerty keyboard at work. He considered it an exercise for keeping his brain sharp. I don't think he still does it, but maybe.

Vim on Dvorak is insane, imho.

Re:Why Vi Rocks by rohansingh on Wednesday April 10, 2019 @10:52PM (#19630765)
Why do you feel that Vim on Dvorak is insane?
Re:Why Vi Rocks by civility on Wednesday April 10, 2019 @11:18PM (#19630869)
Motion in Vi is based on treating the home row of the keyboard as arrow keys. H, J, K, and L are left, down, up, and right. They aren't mnemonics, and so scrambling them around (Dvorak) is just doubly confusing.
Re:Why Vi Rocks by rohansingh on Wednesday April 10, 2019 @11:26PM (#19630913)
Oh, huh, never considered that a real issue. I've used Vim on Dvorak for years, and use hljk for motion.

It's nice that jk are adjacent on Dvorak, and hl are conveniently placed as well.

Re:Why Vi Rocks by beatgammit on Thursday April 11, 2019 @01:35AM (#19631432)
Can confirm, I use Dvorak and vim without issues. I find myself not using hjkl very often though, since I can usually use another movement to get where I want to go, so it's really not an issue.
Re:Why Vi Rocks by joevandyk on Wednesday April 10, 2019 @09:55PM (#19630477)
Using it 3/2 is probably enough...
Re:Why Vi Rocks by base698 on Wednesday April 10, 2019 @10:01PM (#19630510)
It's actually not that hard:

The formula: number(Optional) action movement

Examples:

2 dl - delete two characters right

dw - delete a word

yb - copy back a word

y/foo - copy to the search foo

4cw - change the next four words

actions: yank(copy, delete, change)

movements: /(search), t(til character), f(to character), many many others (l, h, j, k, *, #, T, F)

Combine as you see fit.

Re:Why Vi Rocks by nitemice on Wednesday April 10, 2019 @11:21PM (#19630890)
`action [number] movement` also works, and makes more sense to my brain.
Re:Why Vi Rocks by anotherevan on Wednesday April 10, 2019 @10:16PM (#19630574)
Does anyone use Vim on a Dvorak keyboard?
Re:Why Vi Rocks by rgoulter on Wednesday April 10, 2019 @11:11PM (#19630835)
I used dvorak for a bit. I didn't remap HJKL, since JK were still beside each other, and H was to the left of L (albeit, not on the same row).

In terms of transferring Vim 'motor memory' from a qwerty layout to a dvorak layout, IMO it meant focussing more on an added indirection of "which letters" rather than "which fingers where".

Re:Why Vi Rocks by civility on Wednesday April 10, 2019 @10:27PM (#19630624)
Funny you ask. While you were writing, I posted about a friend of mine who did that in a sibling message.
Re:Why Vi Rocks by phlyingpenguin on Wednesday April 10, 2019 @10:35PM (#19630659)
Yeah. It's really not too bad. It's certainly a little bit better if you take the ~4-10 lines to reconfigure a couple of keys. I map dhtn to hjkl and move d to j, n to l. It's pretty natural after that.
Re:Why Vi Rocks by beatgammit on Thursday April 11, 2019 @01:36AM (#19631443)
I do, and it works well. I tend to use movements other than hjkl for moving around, so that doesn't bother me too much. I don't remap anything, and my config is pretty bare.
Re:Why Vi Rocks by bjoli on Thursday April 11, 2019 @12:54AM (#19631257)
I did for a long time and I found the switch to be painless. I then replaced most of my daily used software with Emacs.
Re:Why Vi Rocks by geowwy on Wednesday April 10, 2019 @10:21PM (#19630590)
I use vim with colemak.
Re:Why Vi Rocks by dilyevsky on Wednesday April 10, 2019 @10:02PM (#19630516)
I use it 4-8/5. Works out OK
Re:Why Vi Rocks by butterisgood on Wednesday April 10, 2019 @10:26PM (#19630618)
Just use it a perfect 5/7