guochaoxxl

在自己的guodersert.vim中添加下面一行即可

hi CursorLineNr term=bold cterm=NONE ctermfg=darkgreen gui=bold guifg=Yellow

hi CursorLineNr term=bold cterm=NONE ctermfg=white gui=bold guifg=Yellow

 

以下片段实现了Python代码超过120个字符时改变背景颜色

 augroup vimrc_autocmds
      autocmd!
      " highlight characters past column 120
      autocmd FileType python highlight Excess ctermbg=DarkGrey guibg=Black
      autocmd FileType python match Excess /\%120v.*/
      autocmd FileType python set nowrap

 augroup END

分类:

技术点:

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-02
  • 2021-06-26
  • 2022-12-23
  • 2021-12-12
  • 2022-12-23
猜你喜欢
  • 2022-01-02
  • 2021-06-14
  • 2021-07-08
  • 2022-12-23
  • 2022-12-23
  • 2021-04-23
  • 2022-01-31
相关资源
相似解决方案