解决vim升级后导致的高亮行行好有下划线问题,

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

hi CursorLineNr term=bold cterm=NONE ctermfg=darkgreen 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

猜你喜欢

转载自www.cnblogs.com/guochaoxxl/p/11642129.html
今日推荐