I wonder what it would be like to design a phone keyboard specifically to be used with vim
@mcc why do you want a keyboard with just W and Q
@a2_4am so I can quit vi
@mcc Yes! Also, what does modal editing look like with a touchscreen as an input device?
@aredridel phone keyboards are already modal
@mcc Quite. But mostly we're stuffing them into QWERTY-shaped boxes, and purely as input, not as _editing_ beyond cursor moving and backspace.

@mcc

I am reminded that vi users made a trillion-dollar company restore the escape key to their laptops after removing it for the Touch Bar.

@rk @mcc this is still my biggest bugbear when I want to use vim from mobile, the muscle memory for ESC is hard to break, but one or another thing in my mobile stack treats ESC on my (hardware) keyboard as "home button", rendering vim pretty useless.

I have some mapping in my .vimrc for "I need ESC to mode-shift but I can't actually use it" but I could not tell you what it is.

I agree with what was expressed elsewhere in the thread that "keyboard" may be a limiting abstraction for a mobile device. It could be interesting to mode-shift with gestures, for instance. (OTOH, keyboards are still Pretty Goddamned Good, so)

@SnoopJ @mcc

So youโ€™re telling me we need a phone with a single physical escape key.

@mcc
or emacs
*ducks*
@joshg that sounds easier
@mcc @joshg huh, are there any phone keyboards that actually do combos? with multitouch you could but I can't recall seeing it
@aburka
map ctrl, alt to volume buttons, let's go
@mcc

@joshg @mcc

Still not much easier to press escape, meta, alt, or control.

On the other hand, ed(1) works quite cromulently on a phone with a default on-screen keyboard.

@mcc a usable escape key ๐Ÿคค
@mcc The one in Termius (iOS) is pretty well suited to it, especially if you add : to the quick-access strip.
@fluffy @mcc I can second this. I use it fairly frequently

@mcc the Touch Pro 2's keyboard was pretty excellent. https://m.gsmarena.com/htc_touch_pro2-pictures-2690.php

With the adjustable tilt, I haven't seen any other phone get this right.

HTC Touch Pro2 pictures, official photos

HTC Touch Pro2 Windows Mobile smartphone gallery - high-resolution pictures, official photos

@mcc but if you're just talking about onscreen keyboards, Hacker Keyboard is it.

@hyc @mcc As someone who's used Happy Hacking Keyboards for mumblety-mumble years, I get where you're coming from on that on-screen keyboard.

But if I were designing an on-screen keyboard to be optimized for vi, the `:` character would not require pressing the Shift key or a long-press.

@DocBohn @mcc I'm surprised no one has done a keyboard with configurable keys yet.
@mcc
Tired - swapping ctrl & caps lock
Wired - swapping esc & caps lock
@Orb2069 phone keyboards typically have neither particularly
@mcc Android 15 has this when you double tap the shift key?
@mcc lowkey this might be a path forward in the "editing text (after entering it) on a phone is a completely miserable user experience" problem
@mcc have you seen the nine square grid system that psp homebrew uses
@bob no :O
@mcc https://github.com/PSP-Archive/DanzeffOSLib if you use both thumbs and the shoulder buttons you can input any key with no more than two actions and without having to hunt for anything. seems like a natural fit for mode-based editing

@urig @mcc

that's a special implant for using EMACS.

@urig @mcc those look more like emacs hands
@urig I immediately recognised that from the King of My Castle music video.
@mcc
@mcc i have wondered that too
@mcc I used to run this thing a couple of years ago https://f-droid.org/packages/inc.flide.vi8 and although I don't really think it's much related to vim at all it's pretty cool looking
8Vim Keyboard | F-Droid - Free and Open Source Android App Repository

A small screen keyboard inspired by VIM and 8Pen

@mcc would the modal editing functionality of vim be particularly effective/efficient on a phone keyboard? (the idea of trying to use Emacs on a phone keyboad [no matter how many modifiers it provides] fills me with horror ๐Ÿ˜›)
@mcc I often think about what it would be like to design a phone keyboard that could actually be used for text editing in general

@mcc
inoremap jj <Esc>

Helps. Typing the column character is indeed annoying on mobile