It’s like this. The bottom edge covers the symbol. It’s very uncomfortable to write code. How to set the line background highlight
閉關(guān)修行中......
Just add the following setting code~/.vimrc
. For specific colors, test it yourself
set cursorcolumn "or set cuc 設(shè)置光標所在的列
set cursorline "or set cul 設(shè)置光標所在的行
" cterm 表示原生vim設(shè)置央視, 設(shè)置為NONE表示可以自定義設(shè)置
" red(紅),white(白),black(黑),green(綠),yellow(黃),blue(藍),purple(紫),
" gray(灰),brown(棕),tan(褐色),syan(青色)
" 更多高亮顏色設(shè)置, 可以:h highlight 查看manual
"highlight CursorLine cterm=NONE ctermbg=blue ctermfg=NONE guibg=NONE guifg=NONE
"highlight CursorColumn cterm=NONE ctermbg=blue ctermfg=NONE guibg=NONE guifg=NONE
If you have set a theme style, as shown below, most theme styles use underline. .vimrc
的樣式, 后面的會覆蓋前面的
. Therefore, you need to put the background highlight style behind the theme.
" /usr/sare/vim/vim80/colors
"colorscheme elflord
"colorscheme koehler
"colorscheme pablo
"colorscheme delek
"colorscheme evening
"colorscheme slate
"colorscheme darkblue
"colorscheme desert
"colorscheme industry
colorscheme murphy
"colorscheme ron
"colorscheme torte
"colorscheme molokai