4 Comments

Code Like a Craftsman with a Vim Clutch

Stroll around our Grand Rapids office, and you’ll find some unique input methods. Curved, split, and mechanical keyboards, mice shaped like everything from sashimi to joysticks, giant trackpads, drawing tablets, Echo Dots, and Yetis. We like to keep things interesting when it comes to our workspaces.

For the last hundred days, I’ve been kicking around a centuries-old input method in a new context. Here’s how you can set up your own Vim clutch.

Hardware

After way too much time searching around to find the perfect USB pedal, I settled on a sturdy, if somewhat sketchy, one that I found on Amazon. Any USB foot pedal will do, but this one’s reasonably cheap at around $25, omnidirectional, and comes with a cord that will reach the floor when my desk is in its standing position.

If you can, try to get a pedal that sends just one keypress event when depressed, and not a continuous stream of characters, as you’d expect from a normal keyboard. The pedal got a lot more comfortable when I realized I could stop hovering and rest my foot without triggering spurious escapes.

Software

Configuring a foot pedal is incredibly easy. Mine came with a simple driver app that took no more than a couple of minutes to install and configure. Though you can configure the pedal to send any keystroke(s), it’s most useful when using a modal editor like Vim or one that supports Vim emulation.

I use Sublime Text 3 with the Vintageous plugin and have my pedal configured to send an escape character when depressed, switching me into edit mode.

All things considered, escape keys aren’t really that hard to tap (even if they’re made of OLEDs), but having another way to drop into edit mode has added a smidge of variety to my day.