"laststatus=2" breaks "au InsertEnter * hi ModeMsg"

7 views
Skip to first unread message

Paul Swanson

unread,
Jan 29, 2021, 7:59:41 PM1/29/21
to vim...@vim.org
Hello,

Given the following .vimrc in Vim 8.2:

set nocompatible
set laststatus=2
au InsertEnter * hi ModeMsg ctermfg=yellow

Upon entering insert mode for the first time, the ModeMsg foreground colour is unchanged; subsequent entries to insert mode see the ModeMsg foreground colour change to yellow as expected.

If the "set laststatus=2" line is removed or changed another valid value, the ModeMsg highlighting is changed on both initial and subsequent entries to insert mode, as expected.

This seems like a bug to me. Can anyone else confirm this behaviour?

Thanks in advance.

Paul Swanson
Reply all
Reply to author
Forward
0 new messages