HackerReposA FIELD GUIDE TO OPEN SOURCE
ProSponsor the shelf♧ 0
← Back to top all-time
alevchuk
vim-clutch
Developer Tools2012–2024
alevchuk / vim-clutch

vim-clutch

A hardware pedal for improved text editing in Vim

27Distinct people
27Mentions
0Explicit recommenders
3.6KGitHub stars
REPOSITORY AT A GLANCE

What to know before exploring

What it is

A hardware pedal for improved text editing in Vim

GitHub

Where it is used

No documented product use was verified in the last source check.

What people are saying

No recommendation phrase was found in the indexed comments.

No classified warning is attached to this page. Read the discussions before treating silence as approval.

Also in these discussions

No other repository is repeatedly linked in the same discussions.

This week on Hacker News

Nov 7–Nov 14 UTC · Direct repository links and separately labeled related project stories. Indexed through 11/14/2026, 3:56:07 PM UTC.

No direct repository links were found in the indexed HN discussions over the past seven days. Older discussions are available below.

Mentions over time

HN mentions by year27 dated mentions

Observed mentions: 2012-06-21 11:24:25 UTC to 2024-10-16 04:18:32 UTC.

0123452012-01-01 00:00:00 UTC to 2013-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments20122013-01-01 00:00:00 UTC to 2014-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2014-01-01 00:00:00 UTC to 2015-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2015-01-01 00:00:00 UTC to 2016-01-01 00:00:00 UTC (exclusive): 2 mentions; 1 submissions, 1 comments2016-01-01 00:00:00 UTC to 2017-01-01 00:00:00 UTC (exclusive): 4 mentions; 1 submissions, 3 comments2017-01-01 00:00:00 UTC to 2018-01-01 00:00:00 UTC (exclusive): 0 mentions; 0 submissions, 0 comments2018-01-01 00:00:00 UTC to 2019-01-01 00:00:00 UTC (exclusive): 2 mentions; 2 submissions, 0 comments20182019-01-01 00:00:00 UTC to 2020-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2020-01-01 00:00:00 UTC to 2021-01-01 00:00:00 UTC (exclusive): 1 mentions; 0 submissions, 1 comments2021-01-01 00:00:00 UTC to 2022-01-01 00:00:00 UTC (exclusive): 3 mentions; 1 submissions, 2 comments2022-01-01 00:00:00 UTC to 2023-01-01 00:00:00 UTC (exclusive): 5 mentions; 1 submissions, 4 comments2023-01-01 00:00:00 UTC to 2024-01-01 00:00:00 UTC (exclusive): 3 mentions; 0 submissions, 3 comments2024-01-01 00:00:00 UTC to 2025-01-01 00:00:00 UTC (exclusive): 1 mentions; 1 submissions, 0 comments2024

Counts come from the repository’s dated source evidence. Index cutoff: 2026-11-02 08:16:59 UTC.

View mention counts and date ranges
UTC ranges include their start and exclude their end. Select a period to filter the source evidence.
PeriodStart (UTC)End (exclusive, UTC)MentionsSubmissionsComments
20122012-01-01 00:00:00 UTC2013-01-01 00:00:00 UTC413
20132013-01-01 00:00:00 UTC2014-01-01 00:00:00 UTC000
20142014-01-01 00:00:00 UTC2015-01-01 00:00:00 UTC101
20152015-01-01 00:00:00 UTC2016-01-01 00:00:00 UTC211
20162016-01-01 00:00:00 UTC2017-01-01 00:00:00 UTC413
20172017-01-01 00:00:00 UTC2018-01-01 00:00:00 UTC000
20182018-01-01 00:00:00 UTC2019-01-01 00:00:00 UTC220
20192019-01-01 00:00:00 UTC2020-01-01 00:00:00 UTC101
20202020-01-01 00:00:00 UTC2021-01-01 00:00:00 UTC101
20212021-01-01 00:00:00 UTC2022-01-01 00:00:00 UTC312
20222022-01-01 00:00:00 UTC2023-01-01 00:00:00 UTC514
20232023-01-01 00:00:00 UTC2024-01-01 00:00:00 UTC303
20242024-01-01 00:00:00 UTC2025-01-01 00:00:00 UTC110

From the project README

An excerpt from the repository, fetched Nov 12, 2026.

Read the project’s introduction
Updates: 2021-10-21 lots of vim pedal projects sprung up, check our my tweet about new work and great summary by l00sed https://twitter.com/alevchuk/status/1449799391389229058 VIM Clutch by Aleksandr Levchuk VIM Clutch is a hardware pedal for improved text editing speed for users of the magnificent VIM text editor (1, 2). When the pedal is pressed down, the pedal types "i" causing VIM to go into Insert Mode. When released, it types <Esc> and you are back in Normal Mode. I just made one and it works great. Here is how I did it. Purchased 2 USB foot switches (pedals) from China: I used Ankaka.com and payed 20 USD (includes 2 pedals and shipping to California). Later I found out the OEM: PC sensor http://www.pcsensor.com/index.php?_a=viewProd&productId=2 $5.50 per pedal Also they sell these form Hong Kong: http://www.suntekstore.com/goods-10010504-pc_usb_foot_switch_keyboard_pedal.html http://www.suntekstore.com/goods-10012491-new_usb_fashion_action_control_keyboard_hid_foot_switch_pedal_.html The pedal is programmable via a Windows GUI or on Mac/Linux via https://github.com/rgerganov/footswitch CLI. Once programmed you can plug it into any Mac or Linux and it will work. Unfortunately, only the Pedal Down event is programmable. But we need to be able to press <Esc> as the pedal is release. I emailed PC sensor, reaching out to collaborate but I just got the pedals from the post office today and really wanted it to work. So I stated hacking at it and came up with a solution in a about 1 hour. I programmed one pedal to send the letter "i" and the other to send the <Esc> Took both pedals apart With electrical tape, attached 2 toothpicks to the plastic blade that goes between the Infrared sensors when the pedal is in the down possition. Placed both sensors boards into one pedal enclosure so that, as the pedal is pressed, first the toothpicks will cross the <Esc> sensor, and after that the plastic blade will enter the "i" sensor. As the pedal is release the toothpicks will cross the <Esc> sensor again. Acknowledgments I would like to say Thank You to: Sean Mahoney for suggesting the name Vim Clutch. Anton Polishko for suggesting pressing <Esc> every time right before pressing "i" in order to avoid typing undesired "i"s. Tyler Backman for letting me use a Windows computer. The company PC Sensor for building such a clean and incredibly inexpensive device. Finally the first VIM Clutch Has anyone thought of this before? Perhaps, but I was not able to find any mention of using a pedal for Vi or VIM. I searched for this occasionally for a span of more than 2 years. Nothing like this comes up on Google. I shared my idea with a lot of my friends and no one mentioned that this was already thought of by someone else. As a result I consider myself the inventor of the VIM Clutch. Extras PC Sensor also has a triple version of the pedal. I will order two of those as well. I will program: The left pedal to "I" - insert at the beginning of the line The middle pedal to "i" - regular insert mode The right pedal to "A" - insert at the end of the line License The VIM Clutch work by Aleksandr Levchuk is licensed under a Creative Commons Attribution-ShareAlike 3.0 Unported License.
Read the full README on GitHub

What Hacker News says

27 sources
I used the same idea when setting up long-range WiFi (couple of KMs) via antenna for a mesh network. In order to get the best latency/bandwidth, you need to point the antennas with precision at each other, and in order to know if you're pointing it right, you need to run some tool on a display at the same time, like `ping`, and see when it gets lower when you're pointing it right. So rather than having to look with one eye towards the horizon, and one eye on a screen to see a tiny number (which I found impossible), I made a quick script that outputs a beep each time ping returns output, with the frequency being higher when the latency got lower. So now I could focus solely on the horizon while using my ears to hear if I was getting in the right direction. Lots of fun, super useful and makes me wonder (just like you) what other tooling we
Read the rest
could use more senses with, rather than just our eyes. Similar vain: the vim foot pedal: https://github.com/alevchuk/vim-clutch
In HDD Clicker – HDD Sound Simulator
Haha, the pedals do actually exist. I'm sure the guy who'd complain about the cable doesn't :D You can hook up like a guitar pedal or a cheap pedal from Alibaba over USB and it'll do the thing. Honestly, though, I found it quite hard to use in clutch or toggle mode because: 1. Had to keep foot in the same place 2. When had to raise foot it was annoying holding it up like that Here's a link for clutch mode: https://github.com/alevchuk/vim-clutch
In Be careful with that thing, it's a confidential coffee maker

Showing the 15 most recent of 27 sources. Enable JavaScript to search and browse every indexed mention.

MAKE YOURSELF AT HOME

A few shortcuts

/
Search the collection
?
Open this guide
Esc
Close dialogs and navigation

Your saved repositories and interests stay in this browser.