Live data from Hacker News

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

github.com

161–170 of 171 posts

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

#161

Earlier quoted context omitted.

> Ctrl+Alt+Shift+5 My fingers just broke reading that. Having said that I don't have a right alt key, as it's altgr . I suppose it's advisable to have two alt keys to use emacs.

I think people mash all 3 control keys with the left hand and reach across for the 5, or stretch their fingers very awkwardly and do all four. We’re into Rachmaninov territory at that point.

[deleted]

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

#162
post #14

A 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

Everyone else is missing the point. Obviously you get an automatic transmission, otherwise you'd have to keep talking your hand off the keyboard.

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

#164
post #46

Earlier quoted context omitted.

> 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 :)

yes, until you find yourself typing jk into word docs or other evil office software every time you finish a thoughtjk.

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

#165
post #95
post #70

Thank 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,…

Nano: M-R f o o Enter b a r Enter A

11 keystrokes.

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

#166
post #160

Earlier quoted context omitted.

If you double clutch near redline on your RPMs, you can get marginally faster gear changes with less wear on your synchronizers.

Double clutching is changing into neutral, then into the target gear, right? How could that be faster?

Try it (shifting at high RPMs, specifically near redline) in a Honda Civic (or any other decent, but not higher end car) and you’ll see. Shift at normal RPM ranges and you’d be right to feel doubtful it would be faster.

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

#167

Earlier quoted context omitted.

When you spend hours in your editor, day after day, you aren’t a beginner for long

That’s unfortunately not my experience from observing other engineers. Many get stuck at a “good enough” level with their tools and never seem to learn the shortcuts which would allow them to code and edit faster.

Yes, that's exactly my experience with Emacs - I read their tutorial to do basic tasks (open files, open windows, switch windows, basic replace). Also, I never learned to use their "smart" (?) terminal, python console...

Otoh, then I tried Pycharm community, and eventually redeemed my github student pack for free pro version, and now I can't imagine living without it. Also there's a great plugin that annoys you with small non-modal popup in LB corner whenever you use mouse and reminds you of the correct hotkey

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

#168
post #95
post #70

Thank 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,…

Also note that with newer Emacs version there is project.el, where all you have to do to replace all instances of "foo" with "bar" is:

+ x + p + r "foo" "bar"

which are 12 keystrokes, if I'm not mistaken, and does more.

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

#169
post #107
post #95

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…

There's is also replace-regexp which doesn't ask for confirmation but doesn't have a default keybinding.
Post reply on HN