修改vim的配置文件实现终端的颜色不同,高亮行的显示不一样

具体就是修改:vim .vim/colors/guodesert.vim文件,添加一行,内容为:

"浅色背景使用显示效果不错

hi CursorLine ctermfg=NONE ctermbg=251 cterm=bold term=bold guibg=NONE guifg=NONE

"深色背景使用显示效果不错

hi CursorLine ctermfg=NONE ctermbg=235 cterm=bold term=bold guibg=NONE guifg=NONE

vim   .vim/syntax/c.vim 配置语法高亮

原文地址:https://www.cnblogs.com/guochaoxxl/p/13658033.html