News for hackers. Stuff that matters.

Ask HN: Vim/Emacs users, how do you deal with non-qwerty layouts?

To all the vim and emacs users, but also any other editor with some sort of keyboard shortcuts, how do you use your editor with non-qwerty layouts?

Specifically, for vim, do you press 'i' for insert mode, wherever 'i' is on your layout, or so you map the letter in the qwerty position of 'i' to be your go-to-insert-mode key? Do you use 'ctrl-x ctrl-f' to open a file on emacs with your layout's 'x' and 'f' or the letters in the qwerty 'x' and 'f' position?

( 11 comments | 4 points | on HN )
Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by joncol on Monday January 02, 2017 @04:18AM (#13300032)
I use the Colemak layout since a couple of weeks back. I'm also using Emacs with Evil mode (i.e. Vim bindings). I have thought about remapping "hjkl" for navigation, but haven't yet done it. Using the Colemak "hjkl" is not completely unnatural, but the habit of the qwerty positions for these characters is pretty deeply rooted.

So no remappings so far.

Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by Lio on Wednesday January 11, 2017 @07:24AM (#13373443)
I've been a Colemak Vim user for several years now (5+? Can't remember).

When I started out I remapped the movement keys to give a more qwerty like layout. Eventually I decided to revert back to the standard Colemak layout.

The main reason was that I use vi movement keys everywhere that I can and whilst it was possible to remap hjkl in the shell (readline based apps can be remapped via ~/.inputrc) it's IMHO easier to adapt to the standard Colemak placement, then they'll work everywhere you do.

One thing that I do remap is <C-e> which is on home row, to provide a better ':'

map <C-e> : imap <C-e> <esc>:

If you remap anything in Vim you should know what you're loosing. In this case default <C-e> scrolls the screen down by 1 line and I think I can live without that to get to command mode quickly. It makes :w so fast especially when combined with Caps mapped to control and <C-m> as an alternative to the return key (provided as standard by the terminal)

Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by Jtsummers on Friday December 23, 2016 @03:04PM (#13246913)
Emacs with dvorak is almost more natural than with qwerty. C-x, C-c using the left pinky for control and the right pointer and middle fingers for x and c (respectively) feels much better to me than using the left hand in a chorded arrangement like in qwerty.

There are others though I'd have to think for a bit longer to list them all. In many cases my hands just seem to flow better.

NB: I was a touch typist with QWERTY (got to about 60wpm) before switching to Dvorak (peaked around 120wpm, around 100wpm these days). I do not attribute the increase to Dvorak specifically, but to literally not being able to see what letter I was pressing so I truly become a touch typist.

Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by lnalx on Thursday December 22, 2016 @01:48PM (#13239377)
I currently use azerty layout and learned vim on it. There is no big changes compared to qwerty at least for letters.

Qwerty is more reliable for development with more ease to reach special characters.

Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by pvinis on Thursday December 22, 2016 @06:19PM (#13241330)
aha. thanks for the answer. so when you do :wq, you press the azerty 'q'?
Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by lnalx on Friday December 23, 2016 @03:32AM (#13243679)
Yes, of course
Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by mbrock on Friday December 23, 2016 @09:40AM (#13244911)
I've been using Dvorak with Emacs for more than ten years. No remapping, the key bindings are fine as they are, in many ways even better than with QWERTY.
Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by groundCode on Friday December 23, 2016 @04:30AM (#13243870)
I type on dvorak and use vim. I've not changed the vim keybindings at all. So when I want to switch to insert mode I hit the "i" key where it is on the dvorak layout. In qwerty terms, I hit the key where "g" would be.
Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by informatimago on Thursday December 22, 2016 @10:11AM (#13237697)
All the operating systems, since 1984, have let the user configure his keyboard layout. Therefore since 1984, on all the computers I've used, I've used the US-QWERTY keyboard layout.

Ie. this is a non-problem, solved since 1984.

Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by pvinis on Thursday December 22, 2016 @10:42AM (#13237966)
I know. I'm asking more to get some opinions on the choice people made. So only people using non-qwerty should offer answers depending on their use.
Re:Ask HN: Vim/Emacs users, how do you deal with non-qwerty ... by wprapido on Thursday December 22, 2016 @10:54AM (#13238056)
you can change keyboard language in any OS. as of keycap labels, i couldn't care less about what they are like. developers touch type anyway. it's a non-issue, really