Live data from Hacker News

Vim Foot Pedal

hackaday.com

41–50 of 134 posts

Re: Vim Foot Pedal

#41
post #7

Earlier quoted context omitted.

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.

> Most vim users swap esc with caps lock anyway "Some", sure, but "most"? Not so sure about that. Besides, everyone knows what Ctrl is the One True Key™ in place of the Caps Lock and that only degenerate infidels map it to anything else.

> Besides, everyone knows what Ctrl is the One True Key™ in place of the Caps Lock and that only degenerate infidels map it to anything else.

Haha yeah I've heard about that and I like the joke =) But I was never interested in adopting it. Because I configure my alt keys to act as ctrl keys which imo results in a much more ergonomic setup.

Ctrl is the most pressed control key for people like me who live in the terminal. But the default placement of the ctrl keys in modern layouts is so wrong. I have never understood it. I guess there has to be a historical reason but I've yet to find out. (Help me, greybeards)

I should't have to move my hand and strain my pinky to reach out the most pressed control keys. With alt it's so much easier. I don't have to move my hands nor use my pinkies. My thumbs already rest on the spacebar and I just have to make a little thumb movement.

Swapping ctrl with caps lock is an ok remedy but alt keys are in a much better place.

So ctrl goes where alt is by default.

But do I swap ctrl with alt? No!! Alt is a frequently used key as well so the default ctrl keys aren't a good fit for alt either. Instead I set the keys immediately adjacent to the default alt keys to act as alt. It's the Super key (sometimes referred as the "Windows" key) on the left side and the context menu key on the right.

Lastly, I set the default left ctrl key to act as Super and the right ctrl key to act as context. Because I virtually never use those.

(I think Apple got this mostly right. cmd is the most used control key for the average Apple user, and opt is next. Their placements are perfect. Though it's still problematic for developers as ctrl is again at the worst place possible. Because of that, what I do in Macs is swapping ctrl with cmd while leaving opt where they are.)

If I'm an infidel for doing this so be it. But with this setup, I'm extremely efficient one. I type and code and enter & exit from repls and jump between interfaces like a damn machine, impressing mostly everybody who watch me use my computer.

Ergonomics FTW

Re: Vim Foot Pedal

#42
I love it. Some months ago I had a Bluetooth pedal with several footswitches. It could be used as a keyboard. I thought about mapping it to a step debugger :D

Re: Vim Foot Pedal

#43

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.

You're not alone, it is one of the easiest keys to hit since it lies all by its own in a corner with no danger of hitting any other keys when whacking it with whatever finger - or combination thereof - is at hand. To be honest I had to guffaw a bit at the rationalisation for using a foot pedal:

The basic concept was to use a pedal to enable switching between normal and insert modes. In Vim’s predecessor, vi, switching modes was easy, with the ESC key located neatly by the Q on the keyboard of the ADM-3A terminal. On modern keyboards, though, it’s a pain, and so a foot pedal is a desirable solution.

So let me get this straight... it is easier to blindly grope for a foot pedal somewhere under a desk than it is to hit that very visible, very close-at-hand key on the keyboard with whatever appendage happens to be closest? Of course it isn't, this is just rationalisation for making that foot pedal - as if any reason is needed to indulge in such projects other than 'because I (want to find out if I) can'.

Re: Vim Foot Pedal

#44
post #22

I resolved this pain by making the Caps Lock key work as it should: tap for “Esc” and hold for “Control”. Then I took the Escape key and made it Caps Lock—it’s occasionally useful, but not nearly enough to warrant a home row position. You can do this with Karaniner Elements on macOS. There’s a way to do it on Windows too, but how escapes me at the moment.

On macOS you can do this using just the stock OS. It's under keyboard settings. You can also do this on iOS, it's awesome if you have a physical keyboard and like to use vim on your iPad

Re: Vim Foot Pedal

#45
post #29
post #22

I resolved this pain by making the Caps Lock key work as it should: tap for “Esc” and hold for “Control”. Then I took the Escape key and made it Caps Lock—it’s occasionally useful, but not nearly enough to warrant a home row position. You can do this with Karaniner Elements on macOS. There’s a way to do it on Windows too, but how escapes me at the moment.

I think AutoHotkey would be the program to use on Windows?

I’d recommend Power Toys for that. AHK is cool but better for scripts and automations. Power Toys has lots of other neat functions and support by MS.

Re: Vim Foot Pedal

#47
post #30

Earlier quoted context omitted.

It behaves differently than Esc.

I am also curious as to how. I have been using CTRL-c for quite some time and even remapped sublime vintage mode to use it on Windows when I am. It using Vim.

See my reply to the other comment.

Re: Vim Foot Pedal

#48
post #22

I resolved this pain by making the Caps Lock key work as it should: tap for “Esc” and hold for “Control”. Then I took the Escape key and made it Caps Lock—it’s occasionally useful, but not nearly enough to warrant a home row position. You can do this with Karaniner Elements on macOS. There’s a way to do it on Windows too, but how escapes me at the moment.

Kmonad for Linux

Re: Vim Foot Pedal

#49

I actually bought one a while back for the emacs metakeys issue which had 4 buttons (it was originally designed for turning pages on a pad while playing music). It worked pretty well while it lasted, but broke after like a year. Having a qmk split keyboard (the iris specifically https://keeb.io/collections/iris-split-ergonomic-keyboard ) was a more lasting solution that also solved some other ergonomic issues. Now my…

I think resourcing foot pedals from the music world (guitars and bass mostly) would be the way to go, they're designed for heavy use and would likely be much more durable.
Post reply on HN