Live data from Hacker News

Vim Foot Pedal

hackaday.com

81–90 of 134 posts

Re: Vim Foot Pedal

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

For Windows 10 people: Microsoft PowerToys has a "remap keys" function within the Keyboard Manager. It's very convenient and easy to use.

Re: Vim Foot Pedal

#82
post #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

You can do the simple remapping. The “tap for escape, hold for control” takes additional software.

Re: Vim Foot Pedal

#84

This is completely useless. Who even uses `i` to enter insert mode? I am almost always using one of the following instead: - o: open new line below current line - O: open new line above current line - I: insert at beginning of current line - A: append to end of current line - cc: change current line - C: change to end of line - ci(: change in current parenthesis - ci": change in double quotes - ctX: change to charact…

> Who even uses `i` to enter insert mode?

Most novice vim users.

Re: Vim Foot Pedal

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

is a native remap to Esc btw

Re: Vim Foot Pedal

#87

Earlier quoted context omitted.

I tend to use escape in most circumstances, but I am increasingly partial to Ctrl-[ when using certain keyboards where the escape key is a bit too far for me. It's another option that's always available by default.

Ctrl-[ is so ingrained in my muscle memory that even when I finally mapped capslock to esc I still never use it.

I mean your fingers are already there and you're frequently hitting ctrl and hard brackets if you're programming. Just makes sense. is the way to go. So many people customize vim in ways where native functionality is easier.

Re: Vim Foot Pedal

#88
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…

For whatever reason IBM in their wisdom decided the AT keyboard should move Ctrl from next to A to where it is now. And I guess since that's when PC clones really started to pick up steam and decided to copy the most recent keyboard it got entrenched. And when Apple decided to bring the control key back to the Mac I guess it made some sense to copy what the PCs were doing and also not mess with previous Mac user's keyboard skills?

Japanese keyboards have extra keys near space. It's possible with software to remap those keys to something else like Ctrl. Really wish more keyboards had usable thumb keys...

Re: Vim Foot Pedal

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

You can do this in QMK too if you have a custom mechanical keyboard. It'll work regardless of machine or os then.
Post reply on HN