vim: change the status line color in insert mode

前端 未结 3 1907
别那么骄傲
别那么骄傲 2021-01-06 10:25

I found this snippet to change the status line color when i go to insert mode:

\" first, enable status line always
set laststatus=2

\" now set it up to chan         


        
3条回答
  •  灰色年华
    2021-01-06 10:48

    I don't see any mention of whether you are using a gui version of Vim, or just Vim in a terminal.

    If you are in a terminal you need to change "ctermbg=5" to "ctermbg=red" instead. In this case "5" translates to "DarkMagenta". Vim will accept numbers or color names for these attributes.

    More information can be found in under sections 2 and 3 under the Highlight Command from the Vim Syntax Documentation.

提交回复
热议问题