#找到colors的位置
cd /usr/share/vim/vim81/colors
#列出所有配色方案
ls
#复制出自己的配色方案
sudo cp murphy.vim oeasy.vim
#查看配色方案信息
sudo vi oeasy.vim
oeasy
Normal
Normal
的意思是一般文字
Comment
Constant
等oeasy
Normal
组Normal
组的背景色ctermbg
改为 blue
Normal
组的前景色 ctermfg
改为 yellow
:w
保存配色文件colorscheme oeasy
重新设定配色文件:hi Normal
可以查看 Normal
组的配色:hi
可以查看当前色彩方案所有的配色xxx
就是效果预览hi
是 highlight
的缩写:h hi
可以查询帮助:hi StatusLine
:hi StatusLine cterm=bold
:hi StatusLine cterm=bold,italic
:hi StatusLine cterm=bold,italic
:hi StatusLine cterm=bold,italic,underline
:hi StatusLine
term
terminal
cterm
hi StatusLine
hi StatusLine ctermfg=red ctermbg=blue
hi StatusLine
ctermfg
c
olor ter
minal f
oreground c
olorctermbg
c
olor ter
minal b
ackground c
olorgui
相关的属性呢
gui
相关颜色对应的色号是来自系统的ansi对应的颜色值
:set cursorline
:h 'cursorline'
:hi CursorLine
:hi CursorLine ctermbg=red ctermfg=white
:hi CursorLine
:set cursorcolumn
:h 'cursorcolumn'
:hi CursorColumn
:hi CursorColumn ctermbg=red ctermfg=white
:hi CursorColumn
:set nowrap
oeasy
组 :hi oeasy ctermbg=white ctermfg=red
oeasy
组 :hi oeasy
oeasy
组 :set statusline=%#oeasy#%F%*
set statusline=%-040.40(%F%m%)%-030.30([%l,%c]%)%p%%
set laststatus=2
set ruler
set number
set showcmd
set nocompatible
set showcmd
set showmode
set history=100
set t_Co=256
colorscheme blue
set cursorline
hi CursorLine ctermbg=red ctermfg=white
set cursorcolumn
hi CursorColumn ctermbg=red ctermfg=white