Vim Clutch | Programming for pedals...

Brief comment: This is a clutch pedal made with hardware, which controls the insert mode and normal mode of Vim ~
There is a project about Vim on Github. The author of the project, Aleksandr Levchuk, can be said to be very interesting.

In order to improve Vim's text editing speed, he made a pedal clutch for Vim himself. When the pedal is pressed, it puts Vim into insert mode (as if pressed); if the pedal is released, it returns to Vim's normal mode (as if a key was pressed).

The production process is also not difficult:

  • Bought two USB foot pedals and PC sensor from China
  • Make it work via Windows GUI or by programming on Mac/Linux (rgerganov/footswitch)
  • One pedal is programmed to send letters and the other to send
  • separate the two pedals

write picture description here

  • With the pedals in the down position, using electrical tape, attach two toothpicks to the plastic blade located between the IR sensors
    write picture description here

  • Put the two sensor boards into a pedal housing so that when the pedal is pressed, first the toothpick will go through the sensor, then the plastic blade will go into the sensor. When the pedal is released, the toothpick goes through the sensor again.

write picture description here

And finally the finished product:
write picture description here

Interested friends may wish to move to Github for reference details~

Github:alevchuk/vim-clutch

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325526355&siteId=291194637