mobile-shell / mobile-shell/mosh

(neo)vim + mosh + "O" insert mode is inconsistent.

Open
#1,103 12 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
C++
Stars
14.5k
Forks
865
PR merge metrics
No merged PRs in 30d

Description

this is a strange one, but I've narrowed it down to mosh.

start up vim or neovim without a config file (nvim -u NONE). Then type O to insert above, and note that the mode has changed from "Normal" to "Insert". Hit esc and observe that you're back to "Normal". Type O again. Observe that you're not back into "Insert" mode as you should be - until you press another key.

If the second "O" doesn't demonstrate the problem, then hit esc again and repeat it. It eventually will.

This is mosh-server built from the master branch as of 2 days ago, but it's persisted before then.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the problem by running nvim -u NONE through mosh, using repeated Esc and O keystrokes, and compare it with a local session. Start by tracing how mosh-server handles terminal input and verify that every second O reliably puts Vim or Neovim into Insert mode without requiring another key.

Written by the indexing model from the issue text.

Assessment

Tech stack
vim
Domain
cli, networking
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.