Live data from Hacker News

Vim Foot Pedal

hackaday.com

61–70 of 134 posts

Re: Vim Foot Pedal

#61
`Ctrl-[` works like escape in vanilla Vim. I prefer it because I don't have to lift my hand from the keyboard, unlike hitting escape

Re: Vim Foot Pedal

#62
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.

[deleted]

Re: Vim Foot Pedal

#63
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.

https://gitlab.com/interception/linux/plugins/caps2esc

Works great in Windows and Linux.

Re: Vim Foot Pedal

#64
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.

Or switch to a sun keyboard where this was the native layout

Re: Vim Foot Pedal

#65
> Plus, there’s some ergonomic benefits to not having to strain one’s hand over to reach the ESC key.

Doubt. I simply move my hand. There is no strain.

Gross movement is not unergonomic.

Re: Vim Foot Pedal

#66
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.

Tried that some years back. Or the simpler version where it is just Control. Didn’t work I found out because I was using my pinky to activate a very common modifier key. It was uncomfortable. I ended up remapping caps lock to Ctrl-C.

I just use the good old control keys now. Either by using my palm or (more commonly for the left one) the last knuckle of my pinky finger.

Re: Vim Foot Pedal

#67

FTA: “Plus, there’s some ergonomic benefits to not having to strain one’s hand over to reach the ESC key.” Honest question: Is it that uncommon knowledge that Ctrl+[ is equivalent to ESC in vim default keybinds?

There is no reason to assume that people don’t know of it simply because they don’t use it.

For me: annoying to use a modifier for a common key + doesn’t work on my keyboard.

Re: Vim Foot Pedal

#68
I wanna see a double-eye-blink detection for ESC key in vim. Super easy (try it!) and very natural. Probably straight forward to detect 2 rapid eye blinks using a cheap webcam + CV.

Re: Vim Foot Pedal

#69
post #41

Earlier quoted context omitted.

> 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 termin…

I always wondered why people are finding it so hard to hit control. And then realized I've been using ThinkPad for 25years which has control closer. Maybe it's not as insane choice / change as I always thought!

Re: Vim Foot Pedal

#70

I remapped pressing jk kj kk jj to escape. As a regular vim user, only sometimes do I actually press i to insert, usually it's cw, a, s, etc.

> As a regular vim user, only sometimes do I actually press i to insert

This is important and the same thing I came to post. I'm not by any means a power user, but even for me, just having i as the way to get into insert mode pretty much defeats the purpose of not having to use the keyboard, because you still need the keyboard to get the cursor where you want it.

The concept of a pedal system is cool, it would be nice to think about how it could be made more comprehensive to handle a bigger subset of mode changes.

Post reply on HN