Thanks for your prompt help with that, Bram.

Sincerely,

Paul Swanson

‐‐‐‐‐‐‐ Original Message ‐‐‐‐‐‐‐

On Thursday, January 28th, 2021 at 20:08, Bram Moolenaar 
<[email protected]> wrote:

> Paul Swanson wrote:
>
> > 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?
>
> It's more prominent if the highlight is reset in InsertLeave:
>
> set laststatus=2
>
> au InsertEnter * hi ModeMsg ctermfg=yellow
>
> au InsertLeave * hi ModeMsg ctermfg=black
>
> You can fix it by adding a redraw:
>
> au InsertEnter * hi ModeMsg ctermfg=yellow | redraw
>
> au InsertLeave * hi ModeMsg ctermfg=black | redraw
>
> But I can change the code that takes care of it.
>
> --
>
> hundred-and-one symptoms of being an internet addict:
>
> 253. You wait for a slow loading web page before going to the toilet.
>
> /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net \\\
>
> /// sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
>
> \\\ an exciting new programming language -- http://www.Zimbu.org ///
>
> \\\ help me help AIDS victims -- http://ICCF-Holland.org ///
>
> —
>
> You are receiving this because you are subscribed to this thread.
>
> Reply to this email directly, view it on GitHub, or unsubscribe.
>
> --
>
> --
>
> You received this message from the "vim_dev" maillist.
>
> Do not top-post! Type your reply below the text you are replying to.
>
> For more information, visit http://www.vim.org/maillist.php
>
> ---
>
> You received this message because you are subscribed to the Google Groups 
> "vim_dev" group.
>
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
>
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/vim_dev/vim/vim/issues/7751/768944646%40github.com.

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/vim_dev/GuubyW_hF7_yizEIDLdHeGuQo0PE5pKWRXm7nsfE5_e7NMNAXilztjeallU5K76qHYnuhAkT9AJuMAWQPkFCWkVbl3gTNRmUm1YwQ6Zf_4w%3D%40protonmail.com.

Raspunde prin e-mail lui