Showing a different background colour in Vim past 80 characters

前端 未结 6 1085
陌清茗
陌清茗 2020-12-07 06:53

I have seen Vim 80 column layout concerns, but the answer there highlights only actual content that goes over the 80 character mark. I want to have a 100+ column Vim window

6条回答
  •  萌比男神i
    2020-12-07 07:34

    For those using onedark.vim like me that wants a solution posted by Conner, I added these lines to my vimrc file

    let &colorcolumn=join(range(1,80),",")
    let g:onedark_color_overrides = {
      \ "black": {"gui": "#2C323C", "cterm": "236", "cterm16": "8"},
      \ "cursor_grey": {"gui": "#282C34", "cterm": "235", "cterm16": "0"}
      \ }
    

    I just swapped the two values, took it from the source code of onedark

提交回复
热议问题