alevchuk/vim-clutch · GitHub


133 bookmarks. First posted by emileswarts june 2012.


Vimのためのハードウェアペダル
Vim 
8 weeks ago by takumisaito
How to build the Vim clutch, a foot pedal to change editor modes
from twitter_favs
12 weeks ago by jpreyer
A hardware pedal for improved text editing in Vim
vim  hardware  diy  hacks 
march 2018 by segfault
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
vim  editor  pedal  hardware  programming 
march 2018 by e2b
By alevchuk.
hardware  vim 
march 2018 by hanyu
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

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

I programmed one pedal to send the letter "i" and the other to send the

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

Acknowledgments

I would like to say Thank You to:

Sean Mahoney for suggesting the name Vim Clutch.

Anton Polishko for suggesting pressing

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.

via Popular https://pinboard.in/popular/
IFTTT  Feedly 
march 2018 by mwender
Github repo
Name: vim-clutch
Tagline: A hardware pedal for improved text editing in Vim
Languages:

## VIM Clutch by Aleksandr Levchuk ##

VIM Clutch is a hardware pedal for improved text editing speed for users of the magnificent VIM text editor (<a href="http://www.vim.org/about.php">1</a>, <a href="http://www.viemu.com/a-why-vi-vim.html">2</a>). When the pedal is pressed down, the pedal types "i" causing VIM to go into Insert Mode. When released, it types &lt;Esc&gt; and you are back in Normal Mode.

I just made one and it works great. Here is how I did it.

1. Purchased 2 USB foot switches (pedals) from China:
I used Ankaka.com and payed 20 USD (includes 2 pedals and shipping to California). <br />
Later I found out the OEM: PC sensor http://www.pcsensor.com/index.php?_a=viewProd&productId=2 $5.50 per pedal<br />
Also they sell these form Hong Kong:<br />
http://www.suntekstore.com/goods-10010504-pc_usb_foot_switch_keyboard_pedal.html<br />
http://www.suntekstore.com/goods-10012491-new_usb_fashion_action_control_keyboard_hid_foot_switch_pedal_.html

2. 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.

3. Unfortunately, only the Pedal Down event is programmable. But we need to be able to press &lt;Esc&gt; 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.

1. I programmed one pedal to send the letter "i" and the other to send the &lt;Esc&gt;

2. Took both pedals apart

<img src="https://github.com/alevchuk/vim-clutch/raw/master/pic1.jpg" />
<br />
<br />
<br />
<br />

3. With electrical tape, attached 2 toothpicks to the plastic blade that goes between the Infrared sensors when the pedal is in the down possition.

<img src="https://github.com/alevchuk/vim-clutch/raw/master/pic2.jpg" />
<br />
<br />
<br />
<br />

4. Placed both sensors boards into one pedal enclosure so that, as the pedal is pressed, first the toothpicks will cross the &lt;Esc&gt; sensor, and after that the plastic blade will enter the "i" sensor. As the pedal is release the toothpicks will cross the &lt;Esc&gt; sensor again.

<img src="https://github.com/alevchuk/vim-clutch/raw/master/pic3.jpg" />
<br />

## Acknowledgments ##

I would like to say Thank You to:

* Sean Mahoney for suggesting the name Vim Clutch.

* Anton Polishko for suggesting pressing &lt;Esc&gt; 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 ##

<img src="https://github.com/alevchuk/vim-clutch/raw/master/pic4.jpg" />

## 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...
github  programming  github-starred-to-pinboard 
march 2018 by brianyang
GitHub is where people build software. More than 27 million people use GitHub to discover, fork, and contribute to over 80 million projects.
vim  hardware  pedal 
march 2018 by geetarista
We need it. A hardware pedal for improved text editing in Vim
from twitter_favs
march 2018 by jabbrwcky
A hardware pedal for improved text editing in Vim
hardware  vim  opensource 
april 2017 by masukomi
VIM Clutch : une pédale pour passer en mode insertion dans (parce que pourquoi pas)
vim  from twitter_favs
april 2017 by oliver.turner
RT : Awesome VIM clutch. A hardware pedal for improved text editing in Vim
unix  linux  from twitter_favs
april 2017 by krispayne
nerab starred alevchuk/vim-clutch
IFTTT  github 
april 2017 by suhlig
RT @nixcraft: Awesome VIM clutch. A hardware pedal for improved text editing in Vim #linux #unix…
hardware  programming  vim  kak  unix  linux 
april 2017 by koehr
Wondering if Apple are about to disrupt the foot pedal market
from twitter_favs
october 2016 by lijnenspel
Only the nerds will understand this one, but just wow! "The VIM Clutch":
from twitter
november 2015 by jcinis
alevchuk/vim-clutch - Added June 24, 2012 at 03:03PM
vim 
june 2015 by xenocid
vim-clutch - A hardware pedal for improved text editing in Vim
vim  accessory 
march 2015 by reorx
VIM Clutch 用腳踏進出 vim insert mode.....
from twitter
june 2013 by jackysee
A hardware pedal for improved text editing in Vim
hardware  vim 
january 2013 by HusseinMorsy
A hardware pedal for improved text editing in Vim. Contribute to vim-clutch development by creating an account on GitHub.
vim  editor  productivity  hack  hardware  github 
august 2012 by Eadgar
Text editing with turbo. RT : I learn something new every day from .
from twitter
july 2012 by johnmaeda
Pedal pro Vim
lol  vim 
july 2012 by metalrufflez
Tags: vim
july 2012 by adharmad
VIM Clutch is a hardware pedal for improved text editing speed for users of the magnificent VIM text editor. 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.
hardware  editor  vim  programming 
july 2012 by jefframnani
A hardware pedal for improved text editing in Vim
vim  editor  hardware  programming  clutch  git  vi 
june 2012 by bezthomas
This might interest you, :
from twitter
june 2012 by asbjornu
: RT : A hardware pedal for improved text editing in Vim | http://t.co/k9Py28IK **LOVE the way people think to improve the ...
ifttt  twitter  from twitter
june 2012 by martijnengler
Vim, one of the most powerful text-editors out there, has two different <em>modes</em>: Normal Mode (for entering commands) and Insert Mode (for inserting text). Some people dedicate their entire life to <a href="https://en.wikipedia.org/wiki/Larry_Tesler">getting rid of modes</a>, others, like <b>Aleksandr Levchuk</b>, dedicate a small portion of their life to creating this <em>vim-clutch</em>, a hardware pedal that switches between the two Vim modes. Excellent!
vim  hardware 
june 2012 by dailynerd
Kinesisなら…Kinesisならこのフットペダルで…http://www.kinesis-ergo.com/fs-savant-elite.htm
vim  gadget 
june 2012 by Layzie
"A hardware pedal for improved text editing in Vim".
vim  hardware  editor  pedal  switch  electronics 
june 2012 by floehopper
A vim clutch sounds like a good idea
from twitter
june 2012 by Khebbie
RT : DUDE: "vim clutch" - a hardware pedal to put you into insert mode: - lol. /via
from twitter
june 2012 by mrchrisadams
RT @nep: If you use vim, perhaps you'd benefit from a vim clutch (foot pedal) http://t.co/w8C9XkpJ
ifttt  twitter 
june 2012 by eggdropsoap
RT : Foot-pedal operated vim? This is the sort of madness I can get behind:
from twitter
june 2012 by ichthyos
RT : DUDE: "vim clutch" - a hardware pedal to put you into insert mode: - lol. /via
from twitter
june 2012 by Skud
Foot-pedal operated vim? This is the sort of madness I can get behind:
from twitter
june 2012 by rafeco
RT : A hardware clutch for VIM! zomg!
from twitter
june 2012 by indra
ペダルを踏んでいる間だけインサートモードになるハードウェア!やばい。
vim  hardware  dev 
june 2012 by lowply
Take your Vim productivity to the next level. h/t
from twitter
june 2012 by atxryan
Just when you think you're hardcore:
from twitter
june 2012 by tomburns
VVim clutch < My god how nerd/geek is that? Back to the 80s we go
from twitter
june 2012 by nicola
LOL - clutch: foot pedal to move betw insert and normal modes
vim  from twitter
june 2012 by yitznewton
'VIM Clutch is a hardware pedal for improved text editing speed for users of the magnificent VIM text editor. 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.' (via Andrew Delaney)
via:delaney  vim  programming  ui  pedals  vi  modal  foot-switch 
june 2012 by jm
That is innovation!
from twitter_favs
june 2012 by mariusz