[vim/vim] Since patch 9.1.1703 Vim sometimes begins in search mode rather than in normal mode when running in Windows Terminal. (Issue #19426)

1 view
Skip to first unread message

Shane Harper

unread,
6:06 AM (3 hours ago) 6:06 AM
to vim/vim, Subscribed
shaneharper created an issue (vim/vim#19426)

Often, on Ubuntu installed from the Microsoft Store on Windows 11, when I start Vim with:
-c 'runtime! macros/less.vim'
Vim will begin in search mode ('/' displayed in the bottom left) rather than in normal mode.

Running the following seems to almost always result in Vim starting in search mode:
echo . | vim -c 'runtime! macros/less.vim' -u /dev/null -i NONE -

Some miscellaneous details:

  • I used git bisect to determine that the problem has existed since 1f51bbc ("Cannot react to terminal OSC responses").
  • The problem still exists in Vim v9.2.0010.
  • I've been passing:
    -c 'set t_RB='
    to vim as a workaround.
  • I've observed the problem when viewing a regular file rather than stdin (although only rarely).
  • The problem doesn't seem to occur when using gnome-terminal instead of Windows Terminal.
    Running:
    :echo v:termrbgresp
    I normally get:
    ^[]11;rgb:ffff/ffff/ffff^[
    with Windows Terminal, and:
    ^[]11;rgb:ffff/ffff/ffff^G
    with gnome-terminal.
  • I am using Windows Terminal v1.23.20211.0.


Reply to this email directly, view it on GitHub.
You are receiving this because you are subscribed to this thread.Message ID: <vim/vim/issues/19426@github.com>

Reply all
Reply to author
Forward
0 new messages