News for hackers. Stuff that matters.
Re:Happy birthday Vim (2020) by hsbauauvhabzb on Thursday November 04, 2021 @08:30PM (#29114129)
I’ve always wanted to learn vim but the keying for Dvorak users is chaos. Interested to hear from Dvorak users who use vim effectively!
Re:Happy birthday Vim (2020) by arp242 on Thursday November 04, 2021 @08:45PM (#29114222)
Vim ships with a "dvorak" plugin; you can load it with ":packadd dvorak".

Curiously, this is not documented unless I'm missing something; after loading you can enable "dvorak mode" with ",d" (w/o quotes), and disable it with ",q". It just maps some keys, see: https://github.com/vim/vim/blob/master/runtime/pack/dist/opt...

Hasn't been updated in 6 years, and there may be better plugins/ways. I'm sure you're not the only person.

Re:Happy birthday Vim (2020) by richard_todd on Thursday November 04, 2021 @08:51PM (#29114257)
I was a dvorak user for years, and the standard vim key-bindings were not a problem. I mean, j and k are still right next to each other, and h is still to the left of l. Most of the other commands are mnemonic like (i)nsert (d)elete, so the location of the key relative to others isn't all that important. I always use both left and right control keys, so no chord is a stretch.

(like many people, I went back to QWERTY because I was losing QWERTY speed and was tired of looking like an idiot when using other people's computers. But sometimes I turn dvorak back on for fun and I'm surprised how I still have muscle memory for common words, even after years.)

Re:Happy birthday Vim (2020) by iCarrot on Thursday November 04, 2021 @09:28PM (#29114491)
Can't say that I'm using Vim effectively, but at least the basic keys are fine.

Basic movement keys are split into two hands. J / K (up & down) are still next to each other and are operated with the left hand. H / L (left & right) are still close together and are operated with the right hand. It actually feels better to use and easier to remember than the one-row arrow cluster on QWERTY.

W / B (to next word & to previous word) are close together and are operated by the right hand. I actually use W B much more than H L and it feels great.

Y / P (copy & paste) are next to each other which is great.

Ctrl B / F (page up & down) are a bit counter intuitive because of the position (page up is below page down). Ctrl U / D (half page up & down) are fine.

A I O (various ways to enter insert mode) are clustered into left hand home row. S C R (various ways to replace text) are clustered into right hand.

Re:Happy birthday Vim (2020) by opinion-is-bad on Thursday November 04, 2021 @09:00PM (#29114317)
I started using vim about 5 years ago, and switched to Dvorak 2 years ago. It was painful at first, but so was everything with Dvorak. The muscle memory takes over eventually and now it’s very comfortable. The only thing I still occasionally use QWERTY for is games.
Re:Happy birthday Vim (2020) by praash on Friday November 05, 2021 @02:50AM (#29116148)
I never bothered to learn HJKL navigation since I nearly simultaneously started using Dvorak, Vim and DreymaR's incredible Extend layer. The Extend layer is a software XKB mapping where holding Caps Lock lets me use arrow keys, Home/End, Backspace/Delete, PgUp/PgDown etc. Directly from my home row position. It is responsible for tripling my editing efficiency as it lets me make instant corrections and jumps anywhere.
Re:Happy birthday Vim (2020) by Rudism on Friday November 05, 2021 @01:08PM (#29122049)
Been using both vim and dvorak for nigh on 20 years now (started learning both in university), and have zero problems with the default keymappings, including hjkl navigation--once it becomes muscle memory you can get used to anything.
Re:Happy birthday Vim (2020) by scns on Thursday November 04, 2021 @08:39PM (#29114191)
I use neo2. The keys for hjkl are totally scattered and left and right switched. Still, working in qwerty or without vimbindings seems like hell. Keep at it, it will become muscle memory.
Re:Happy birthday Vim (2020) by manx on Friday November 05, 2021 @02:29PM (#29123047)
I also use neo2 and am using the neo arrow keys and Esc on layer 4. Works like a charm.

Fun thing with neo: You have additional keys free for keybindings: hjkläöüß

I'm using ä, ö and ü to save, close buffer and quit vim. I'm very happy with that.

Re:Happy birthday Vim (2020) by scns on Thursday November 18, 2021 @12:29PM (#29268030)
Can you use those layer 4 keys in macros though?

Great idea to reuse äöüß!

Re:Happy birthday Vim (2020) by manx on Tuesday November 30, 2021 @05:28AM (#29390724)
Yes, layer 4 keys (like arrow keys) in macros are working well.

Here are my üöä bindings: https://github.com/fdietze/dotfiles/blob/83455c587ccdacaf681...

Re:Happy birthday Vim (2020) by habyte on Friday November 05, 2021 @09:49AM (#29119187)
Checkout ThePrimagen on YouTube. He makes videos about Vim while recording his hand movements on a Dvorak keyboard
Re:Happy birthday Vim (2020) by weaksauce on Thursday November 04, 2021 @09:01PM (#29114322)
if you avoid the hjkl thing all the other keys are mnemonic for the most part... if you are on mac os you can remap caps-hjkl(well the dvorak equivalent if it doesn't mess up) to arrow keys system wide and get that