在自己的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

05-21 03:15