Earlier quoted context omitted.
I know the image post in your comment exaggerates the Emacs input sequence for humorous effect but I got curious and decided to count the actual keystrokes for a real world common use case. Say, we want to replace one string with another, e.g., "foo" with "bar" as it appears in your image post. So assuming that we need simple string replacement, not regex-based replacement, and also assuming that we have vanilla Vim,…
Adding further to my previous comment: What if we really need to do regex, say replace "f.." with "bar"? The input sequences then look like this: On Vim: +; (:) +5 (%) s/f../bar/g (16 key strokes) On Emacs: + +, (M- bar +1 (!) (17 key strokes) Although, the number of key strokes are close to each other for both Vim and Emacs, I am pretty sure most beginners would feel there is a slightly increased cognitive overhead…
Vim Clutch – A hardware pedal for improved text editing (2012)
111–120 of 171 posts
Re: Vim Clutch – A hardware pedal for improved text editing (2012)
#112Re: Vim Clutch – A hardware pedal for improved text editing (2012)
#113Nice idea but ridiculously wimpy switch. Rig up one of these American made beauties instead. https://www.amazon.com/SSC-Controls-G500-MO-Electrical-Indus... from experience: they're way more satisfying to press and oil/water/dust tight. EDIT: fixed link. this pedal is also OSHA approved with a safety cap to prevent objects from falling onto the switch and triggering insert mode.
Link still doesn't work. I think this is what you were trying to link to: https://www.ebay.com/itm/TEMCo-Heavy-Duty-Cast-Aluminum-Foot... I'm not sure how you'd connect this as an ancillary USB keyboard. Seems like you'd need an Ardunio or something? I'd love to have a few of these to control DAW apps where I don't need the hassle, cost and complexity of Midi
If you have only one or two switches, you can use the DIRECT_PINS configuration to directly put one switch per input pin rather than the more conventional switch matrix approach. You can use the XD002 code as a starting point (https://github.com/qmk/qmk_firmware/tree/master/keyboards/xd..., https://github.com/qmk/qmk_firmware/blob/master/keyboards/xd...). It uses a DigiSpark rather than the more common Arduino Pro Micro. The DigiSpark is a bit fiddly and has very little program memory, but it is very cheap and simple.
Re: Vim Clutch – A hardware pedal for improved text editing (2012)
#114Re: Vim Clutch – A hardware pedal for improved text editing (2012)
#115Earlier quoted context omitted.
Consider remapping ';' to ':' if you use vim a lot. Something like: " Use ; rather than : for commands nore ; : nore , ;
See, I never understood these tips. If I use Vim a lot I will build muscle memory. If I build the muscle memory with these adjustments I’ll just keep tripping over myself whenever I edit a file on a station without those adjustments. And simply foregoing the shift key isn’t even that much of a time or effort save.
Re: Vim Clutch – A hardware pedal for improved text editing (2012)
#116Thank you for posting this and giving me a reason to reread my all time favorite greentext: https://i.imgur.com/WLzeQMj.png
I know the image post in your comment exaggerates the Emacs input sequence for humorous effect but I got curious and decided to count the actual keystrokes for a real world common use case. Say, we want to replace one string with another, e.g., "foo" with "bar" as it appears in your image post. So assuming that we need simple string replacement, not regex-based replacement, and also assuming that we have vanilla Vim,…
nnoremap ; :
I've never missed the default behaviour of ";" (to repeat the last "t"-like command), and the above has helped me tremendouslyRe: Vim Clutch – A hardware pedal for improved text editing (2012)
#117Thank you for posting this and giving me a reason to reread my all time favorite greentext: https://i.imgur.com/WLzeQMj.png
I know the image post in your comment exaggerates the Emacs input sequence for humorous effect but I got curious and decided to count the actual keystrokes for a real world common use case. Say, we want to replace one string with another, e.g., "foo" with "bar" as it appears in your image post. So assuming that we need simple string replacement, not regex-based replacement, and also assuming that we have vanilla Vim,…
Re: Vim Clutch – A hardware pedal for improved text editing (2012)
#118Thank you for posting this and giving me a reason to reread my all time favorite greentext: https://i.imgur.com/WLzeQMj.png
I know the image post in your comment exaggerates the Emacs input sequence for humorous effect but I got curious and decided to count the actual keystrokes for a real world common use case. Say, we want to replace one string with another, e.g., "foo" with "bar" as it appears in your image post. So assuming that we need simple string replacement, not regex-based replacement, and also assuming that we have vanilla Vim,…
Re: Vim Clutch – A hardware pedal for improved text editing (2012)
#119Re: Vim Clutch – A hardware pedal for improved text editing (2012)
#120A full gearbox would be nice: * reverse --> undo * first gear --> replace mode * second gear --> visual mode * third gear --> command mode * fourth gear --> insert mode * fifth gear --> customizable mode
and you would be busy switching gear I guess...