[vim/vim] :startinsert enters Insert mode in a non-modifiable buffer (Issue #20804)

3 views
Skip to first unread message

Barrett Ruth

unread,
1:18 PM (9 hours ago) 1:18 PM
to vim/vim, Subscribed
barrettruth created an issue (vim/vim#20804)

:startinsert enters insert mode in a non-modifiable buffer

steps to reproduce

  1. run vim --clean.
  2. run :set nomodifiable.
  3. run :startinsert.
  4. type a character. vim is in insert mode but reports e21 because the buffer cannot be modified.

expected behaviour

:startinsert should report e21 without entering insert mode, consistent with pressing i.

version of vim

9.2.0541

environment

linux 6.18.39, ghostty 1.3.1, term=xterm-256color, zsh.


Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/20804@github.com>

Reply all
Reply to author
Forward
0 new messages