Actually, I hit this problem when I used ssh from my android phone to log in into a linux server, and I tried to use vim to edit some files.

It was a little bit... displeasing, although I could do everything which I could do from a normal desktop/keyboard.

Extension: There was a question, why it was displeasing if I could do anything I wanted. For example, typing 5j45| on an emulated keyboard on a touchscreen has a much lower information rate (between your brain and your device) as touching the intended character position on a touchscreen.

  • 2
    I haven't used them so I don't know if either are suitable or quiality, but here are two Android apps which give some degree of vim control: VimTouch and Terminal IDE
    – asfallows
    Feb 3, 2015 at 17:18
  • The main unknown for me with these tools is: is it easy/feasible to edit remote files through them, with netrw or otherwise?
    – asfallows
    Feb 3, 2015 at 17:19
  • 1
    The start might be using something like the Android "Hacker's Keyboard" play.google.com/store/apps/… as on screen keyboard. I can imagine more touch support, though (for placing cursor, scrolling, ...)
    – johannes
    Feb 3, 2015 at 17:20
  • 1
    I use this kind of script on my Nokia N900: vim.org/scripts/script.php?script_id=3141 Feb 4, 2015 at 8:03
  • 1
    If you could do everything that you could do from a normal keyboard, what about it was displeasing? (I can think of several answers to this, but it would help to know which one(s) you're actually implying).
    – Rich
    Feb 8, 2015 at 9:33

2 Answers 2


Does enabling mouse helps? This way you should be able at least do selections via touch. Maybe navigate files and buffers/tabs. Depends on plugins I guess.

set mouse=a
  • Wonderful! I think, it works only the client side terminal supports it, but it can work!
    – peterh
    Mar 15, 2015 at 5:30

Yes, modify the vim source event:

enter image description here


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

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