就像這樣 這個(gè)底邊把符號(hào)給遮住了 寫(xiě)代碼看著很不舒服 如何設(shè)置為行背景高亮
閉關(guān)修行中......
把下面設(shè)置代碼 加入~/.vimrc
即可. 具體顏色,自己測(cè)試一下
set cursorcolumn "or set cuc 設(shè)置光標(biāo)所在的列
set cursorline "or set cul 設(shè)置光標(biāo)所在的行
" cterm 表示原生vim設(shè)置央視, 設(shè)置為NONE表示可以自定義設(shè)置
" red(紅),white(白),black(黑),green(綠),yellow(黃),blue(藍(lán)),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
如果,你有設(shè)置主題樣式的話,如下, 多數(shù)主題樣式, 都是采用下劃線的方式. .vimrc
的樣式, 后面的會(huì)覆蓋前面的
. 所以,你需要把背景高亮的樣式, 放在主題的后面即可.
" /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