5

Today I found myself struggling with Vim while being on the phone.

I had only one hand to move around, so the home row was fine but with small hands, every <C-x> shortcuts (<C-d>, <C-u>, ...) is a pain to achieve.

While I think that I should always use my two hands to use Vim, I found interesting the question : How can I use Vim with only one hand ?

  • I take it this is a hypothetical question (since you say While I think that I should always use my two hands to use Vim), for anyone considering this practically: A hands free phone device (eg a bluetooth headset), is probably the way to go when typing while on the phone. – Lyndon White Aug 23 '15 at 7:46
  • Yeah that is what I realised when I tried to use vim to 'go to line xx' or 'scroll down a little'. – nobe4 Aug 23 '15 at 7:48
4

Any attempt to customize vim for one-handed use would almost certainly involve remapping a lot of the basic commands -- probably based on the preference and habits of the user in question (for example, which motions do you use most often, et cetera). Since that is highly subjective, I'll mostly gloss over it other than to note it as a likely step in the process.

Because of that, though, one consideration would be specialized hardware that offers more keystroke possibilities to a single handle, perhaps something like a chorded keyboard or even one of those crazy, gaming-oriented "gamerboards." Devices which either re-position keys to put more within easy reach of one hand, or which facilitate a greater number of actual keystrokes through chording, may be able to make up for the efficiency and ergonomics loss of having to use one hand on a traditional keyboard (and thus move it around a lot more to get to all the keys).

Chorded devices are probably more likely, as at some point you're probably still going to enter insert mode and want to type actual text, and I'm not sure how viable that would be on something like that gamerboard.

The mental investment would be high enough that I doubt it would be useful for dealing with the scenario you mentioned (vim'ing while on the phone), but might be more applicable for people with long-term injury or disability that prevents them from using two hands "normally."

Another interesting possibility to consider is that of using two hands, but not necessarily both at the same time. I briefly owned one of these mice, which I found overall to be rather horrid... but its got 12 thumbable buttons on the side that can be shifted to another 12 via a ring-finger button, for a total of 24 distinct inputs. It made me think there might be a scenario where you could find some useful vim commands to map to those buttons, ones you found yourself using near when you also found yourself using the mouse for outside tasks, for example.

3

Many Linux desktop environments support 'sticky keys' among the assistive technologies for disabled persons. This allows a modifier key such as control to be pressed and released and then the second key pressed to complete the compound action.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.