Live data from Hacker News

Vim Foot Pedal

hackaday.com

1–10 of 134 posts

Re: Vim Foot Pedal

#2
Sexy idea, but as someone who started using vi in 1987, a software solution seems way better. I map the seldom-otherwise-used key sequence jk to . If I were doing it over, kj would be slightly better, for times when I am Just Kidding. I do this in both .vimrc and .inputrc (using different syntax, sigh). My fingers generate the escape without thought. (As is true for tons of vim normal mode actions I use regularly.)

Re: Vim Foot Pedal

#4
post #2

Sexy idea, but as someone who started using vi in 1987, a software solution seems way better. I map the seldom-otherwise-used key sequence jk to . If I were doing it over, kj would be slightly better, for times when I am Just Kidding. I do this in both .vimrc and .inputrc (using different syntax, sigh). My fingers generate the escape without thought. (As is true for tons of vim normal mode actions I use regularly.)

Nah, that’s not the way. If you go that route it’ll only work in Vim itself and not other programs with a vi-like interface.

Better to map caps to ctrl and build up the muscle memory to use ctr-[

If you do that you also get easy access to all those other Insert mode ctrl shortcuts.

Re: Vim Foot Pedal

#5

Map holding caps lock to control and esc on tap, you never use it anyway :)

Correct answer. This is one of the few defaults that makes sense to change as it can be done at the OS level, which will then be inherited to the tens of different systems i use vi on a day.

Re: Vim Foot Pedal

#6
I swear sometimes I feel like I’m the only person in the world that thinks hitting the ESC key is easy and no big deal.

Maybe it’s decades of doing it, and I don’t consider myself especially dexterous, but I never have any problem with it.

Re: Vim Foot Pedal

#7

I swear sometimes I feel like I’m the only person in the world that thinks hitting the ESC key is easy and no big deal. Maybe it’s decades of doing it, and I don’t consider myself especially dexterous, but I never have any problem with it.

Agreed. Most vim users swap esc with caps lock anyway, making it even easier to reach.

I don't think pedals bring any significant ergonomic benefit, but pedal setups look cool nonetheless.

Swapping keys isn't interesting and you can't write a blog post about it.

Re: Vim Foot Pedal

#8
Someone long ago, probably here, suggested binding the sequence 'K-J' to 'ESC'. Now I don't even have to take my fingers off the home row.

Re: Vim Foot Pedal

#9
post #2

Sexy idea, but as someone who started using vi in 1987, a software solution seems way better. I map the seldom-otherwise-used key sequence jk to . If I were doing it over, kj would be slightly better, for times when I am Just Kidding. I do this in both .vimrc and .inputrc (using different syntax, sigh). My fingers generate the escape without thought. (As is true for tons of vim normal mode actions I use regularly.)

Both jk and kj appear in normal writing for me :(

I briefly considered a foot pedal but it seems to me that foot dexterity is far lower than finger, meaning typing ihello is FAR faster than hello, not to mention that pedal travel is way longer.

Of course you map esc to caps.

Re: Vim Foot Pedal

#10

I swear sometimes I feel like I’m the only person in the world that thinks hitting the ESC key is easy and no big deal. Maybe it’s decades of doing it, and I don’t consider myself especially dexterous, but I never have any problem with it.

I think a lot of keyboard ergonomics comes down to the facts that some people do anything to avoid moving their hands, and others don't.

If you don't move your hand, you'll have to stretch your fingers, and might be better suited to a minimalist keyboard with function layers.

Post reply on HN