Live data from Hacker News

Vim Clutch – A hardware pedal for improved text editing (2012)

github.com

41–50 of 171 posts

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#41
post #25

I use a foot pedal for copy and paste operations when I want to give my hands a rest and to distribute heavy editing duties over to my feet when the occasion arises. https://superuser.com/a/1486751

HolyDoly! This is exactly what I want. Thank you!

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#42
post #31

This is cool and all, but nearly useless for any experienced vimmer. I almost never press `i` to enter insert mode, and I don't expect most vimmers to do so either. My most common ways to enter insert mode are, off the top of my head... o -- Open new line below current line, enter insert mode. O -- Open new line above current line, enter insert mode. ci( -- Delete all text between the nearest parenthesis and enter in…

seems like it would be awfully slow for any experienced vimmer also. Seems like a really bad idea for a foot pedal / vim integration. A, possibly, much better idea would be if you press the pedal, is turn the hjkl keys into sending actual arrow key keycodes so those annoying times when you need to arrow through OS menus etc you can use your vim instincts. Not that I'd ever want to incorporate a foot pedal myself, but…

> if you are having trouble with getting into and out of insert mode, maybe Vim isn't for you.

I've got a question there actually. The only thing that throws off my flow while using Vim is exiting insert mode, as my keyboard has an inconvenient esc key. Is there a better way to exit? I've done some cursory looking but haven't found anything that looks useful.

(Remapping my keyboard isn't a viable option, as I game on my machine sometimes, and occasionally need weirdly specific keys.)

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#43
post #32

This is cool and all, but nearly useless for any experienced vimmer. I almost never press `i` to enter insert mode, and I don't expect most vimmers to do so either. My most common ways to enter insert mode are, off the top of my head... o -- Open new line below current line, enter insert mode. O -- Open new line above current line, enter insert mode. ci( -- Delete all text between the nearest parenthesis and enter in…

Minor improvement, cc can be replaced by S

Is shift-S faster than cc? The keys are farther away from each other, but I guess you can get some bonus by pressing them "in parallel"... For me, cc feels faster. Although I might feel differently if it was, say pp vs shift-S.

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#44
post #31

Earlier quoted context omitted.

seems like it would be awfully slow for any experienced vimmer also. Seems like a really bad idea for a foot pedal / vim integration. A, possibly, much better idea would be if you press the pedal, is turn the hjkl keys into sending actual arrow key keycodes so those annoying times when you need to arrow through OS menus etc you can use your vim instincts. Not that I'd ever want to incorporate a foot pedal myself, but…

> if you are having trouble with getting into and out of insert mode, maybe Vim isn't for you. I've got a question there actually. The only thing that throws off my flow while using Vim is exiting insert mode, as my keyboard has an inconvenient esc key. Is there a better way to exit? I've done some cursory looking but haven't found anything that looks useful. (Remapping my keyboard isn't a viable option, as I game on…

Ctrl-C and Ctrl-[ also work by default, but personally I use CapsLock after doing `setxkbmap -option caps:escape`.

> Remapping my keyboard isn't a viable option, as I game on my machine sometimes

You can also map something specifically on vim with :imap/:vmap/:cmap.

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#45
post #33
post #26

Earlier quoted context omitted.

Seems like you just need more pedals.

Vim should support mouse, like Midnight Commander

:set mouse=a

And away you go. As you get more efficient at vim use you might find you want to turn that off again.

(and also without the colon in your vimrc file if you want it to stick)

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#46
post #31

Earlier quoted context omitted.

seems like it would be awfully slow for any experienced vimmer also. Seems like a really bad idea for a foot pedal / vim integration. A, possibly, much better idea would be if you press the pedal, is turn the hjkl keys into sending actual arrow key keycodes so those annoying times when you need to arrow through OS menus etc you can use your vim instincts. Not that I'd ever want to incorporate a foot pedal myself, but…

> if you are having trouble with getting into and out of insert mode, maybe Vim isn't for you. I've got a question there actually. The only thing that throws off my flow while using Vim is exiting insert mode, as my keyboard has an inconvenient esc key. Is there a better way to exit? I've done some cursory looking but haven't found anything that looks useful. (Remapping my keyboard isn't a viable option, as I game on…

The best remap in my vimrc:

" Map jk to ESC in insert mode

inoremap jk

Once you've finished what you wanted to insert just hit jk. The combination never occurs in the English language and is right on the home row :)

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#48
post #26

This is cool and all, but nearly useless for any experienced vimmer. I almost never press `i` to enter insert mode, and I don't expect most vimmers to do so either. My most common ways to enter insert mode are, off the top of my head... o -- Open new line below current line, enter insert mode. O -- Open new line above current line, enter insert mode. ci( -- Delete all text between the nearest parenthesis and enter in…

Seems like you just need more pedals.

One of these bad boys should do the trick. https://www.nordkeyboards.com/products/nord-pedal-keys-27

But maybe you'd be more efficient with a chording setup...

Re: Vim Clutch – A hardware pedal for improved text editing (2012)

#50
post #32

Earlier quoted context omitted.

Minor improvement, cc can be replaced by S

Is shift-S faster than cc? The keys are farther away from each other, but I guess you can get some bonus by pressing them "in parallel"... For me, cc feels faster. Although I might feel differently if it was, say pp vs shift-S.

> Is shift-S faster than cc? The keys are farther away from each other

In my case, my left pinky rests on the shift and my left ring-finger rests on the "s", so shift-S is just pressing the keys my fingers are already resting on.

Post reply on HN