Showing a different background colour in Vim past 80 characters

前端 未结 6 1095
陌清茗
陌清茗 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条回答
  •  谎友^
    谎友^ (楼主)
    2020-12-07 07:30

    Highlight 81 column

    :set textwidth=80
    :set colorcolumn=+1
    

    You may also make some styling:

    :hi ColorColumn guibg=#2d2d2d ctermbg=246
    

提交回复
热议问题