Crtl and alt. Caps as escape..
Vim Foot Pedal
71–80 of 134 posts
Re: Vim Foot Pedal
#72Earlier quoted context omitted.
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.
I just have a simple autohotkey script + vim like keys for going up and down in textboxes/selection/dropdowns.
Only downside is the mess that happens when on other machines that don't have that, also try to use ^[ as much as possible.Re: Vim Foot Pedal
#73I 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
#74Earlier quoted context omitted.
> 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…
> 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've seen this talk here and the speaker mentioned the ADM-3A (that is also mentioned in the article itself) terminals at about the 17/18 minu…
Re: Vim Foot Pedal
#75Re: Vim Foot Pedal
#76I 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?
Re: Vim Foot Pedal
#77Earlier quoted context omitted.
> 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 actually don't really care, although trying the "regular" Ctrl on my laptop feels odd, but I'm also not used to using it. It's just what I'm used to. I grew up on the MSX which, like many keyboards of its day, had Ctrl where we now have Caps Lock. When we upgraded (well, "upgraded") to Windows 95 I found some hack to make CapsLock behave like Ctrl because I was so used to it. Later I started using Linux and BSD and…
Re: Vim Foot Pedal
#78I 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.
Re: Vim Foot Pedal
#79I 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.
More literally though, the Logidy UMI3[1] is a MIDI-over-USB foot controller that uses guitar pedal-like switches. It's designed to serve as a hardware interface to software loop control, but you can use a MIDI yoke or translator[2][3][4][5][6][7][8] to turn MIDI input into keystrokes, game input, etc.
1: https://www.logidy.com/umi3
2: Using just `aseqdump` to capture input, `xdotool` to simulate keystrokes, and a 7-line shell script to glue them together: https://superuser.com/questions/1170136/translating-midi-inp...
3: https://www.bome.com/products/mtclassic
4: http://www.varal.org/ttymidi/
6: https://hautetechnique.com/midi/midishortcut/
7: https://github.com/xobs/midi-to-keypress (Rust, Linux/macOS/Windows, open source)
8: https://charlie-roberts.com/midiStroke/, https://github.com/charlieroberts/midiStroke/ (macOS, open source)
Re: Vim Foot Pedal
#80I 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 character X
- cfX: change to found character X
Each of these will perform an action and leave you in insert mode after the action. Then using `.` you can repeat both the changing action and the insert, all in one keystroke. Obviously impossible to do if you only use `i` and `a`.
Vim is not about toggling modes. Vim is an entire language to express text transformation, that you can then repeat with `.`, or undo with "micro commits" to your file, traversing the history back and forward in sensible chunks instead of the usual chaos of Ctrl-Z in other editors. (You can even branch your undo history!)