​​

这个配置不错

1. .vimrc

set fileencoding=utf-8
set encoding=utf-8
"set termencoding=gbk
set gfn=Monaco:h10:cANSI
hi Comment ctermfg =red
hi Statement ctermfg =darkyellow
set background=dark
set gfw=NSimsun:h12
set hlsearch "高亮度反白
set backspace=2 "可随时用退格键删除
set autoindent "自动缩排
set ruler "可显示最后一行的状态
set showmode "左下角那一行的状态
set nu "可以在每一行的最前面显示行号啦!
set expandtab
set tabstop=4
set shiftwidth=4
set t_Co=256
set ru
set ignorecase
syntax on
let g:kolor_italic=1
let g:kolor_bold=1
let g:kolor_underlined=0
let g:kolor_alternative_matchparen=0
colorscheme kolor

map <F4> :set nu!<BAR>set nu?<CR>

2. colorscheme kolor 文件

"
"
"
"
" dP dP
" 88 88
" 88 .dP .d8888b. 88 .d8888b. 88d888b.
" 88888" 88' `88 88 88' `88 88' `88
" 88 `8b. 88. .88 88 88. .88 88
" dP `YP `88888P' dP `88888P' dP
"
"
" ...when you need pro colors!
"
"
"
"
" Name: kolor
" Author: Alessandro Di Martino <aledimax@gmail.com>
" Version: 1.4.1
" URL: https://github.com/zeis/vim-kolor
" License: MIT
"
" --------------------------------------------------------------------------
" DESCRIPTION
" --------------------------------------------------------------------------
" Colorful Vim color scheme with 256 color terminal support.
" Designed for high readability and optimal visibility of every element,
" and to be eye comfortable as well.
"
" --------------------------------------------------------------------------
" INSTALLATION
" --------------------------------------------------------------------------
" Copy kolor.vim to ~/.vim/colors (on Win <your-vim-dir>\vimfiles\colors).
" Then add the line "colorscheme kolor" in your vimrc file, and restart Vim.
"
" --------------------------------------------------------------------------
" OPTIONS
" --------------------------------------------------------------------------
" Options must be set before the line "colorscheme kolor" in your vimrc.
"
" let g:kolor_italic=1 " Enable italic. Default: 1
" let g:kolor_bold=1 " Enable bold. Default: 1
" let g:kolor_underlined=0 " Enable underline. Default: 0
" let g:kolor_alternative_matchparen=0 " Gray 'MatchParen' color. Default: 0
"
" --------------------------------------------------------------------------
" DONATIONS
" --------------------------------------------------------------------------
" This color scheme is dedicated to the the Ugandan children (see Vim's
" website).
" How about donating to them? (http://iccf-holland.org/click5.html).
" And, if you donate, please, let me know.


highlight clear
set background=dark
if exists("syntax_on")
syntax reset
endif
let g:colors_name="kolor"


if !exists("g:kolor_bold")
let g:kolor_bold=1
endif
if !exists("g:kolor_italic")
let g:kolor_italic=1
endif
if !exists("g:kolor_underlined")
let g:kolor_underlined=0
endif
if !exists("g:kolor_alternative_matchparen")
let g:kolor_alternative_matchparen=0
endif

highlight Normal guifg=#c6c6c6 guibg=#2e2d2b gui=none
highlight SpecialKey guifg=#7eaefd guibg=NONE gui=none
highlight NonText guifg=#7eaefd guibg=#2e2d2b gui=none
highlight Directory guifg=#e6987a guibg=NONE gui=none
highlight IncSearch guifg=#000000 guibg=#ff5fd7 gui=none
highlight LineNr guifg=#808080 guibg=#242322 gui=none
highlight StatusLine guifg=#000000 guibg=#9e9e9e gui=none
highlight StatusLineNC guifg=#b2b2b2 guibg=#4a4a4a gui=none
highlight VertSplit guifg=#4a4a4a guibg=#4a4a4a gui=none
highlight Visual guifg=#e2e2e2 guibg=#5c5c5c gui=none
highlight VisualNOS guifg=#e2e2e2 guibg=NONE gui=underline
highlight WildMenu guifg=#000000 guibg=#75d7d8 gui=none
highlight Folded guifg=#8787af guibg=#242322 gui=none
highlight FoldColumn guifg=#8787af guibg=#242322 gui=none
highlight DiffAdd guifg=NONE guibg=#005154 gui=none
highlight DiffChange guifg=NONE guibg=#4f3598 gui=none
highlight DiffDelete guifg=#d96e8a guibg=#72323f gui=none
highlight DiffText guifg=#000000 guibg=#75d7d8 gui=none
highlight SignColumn guifg=#808080 guibg=#2e2d2b gui=none
highlight Conceal guifg=#c6c6c6 guibg=NONE gui=none
highlight SpellBad guifg=NONE guibg=NONE gui=undercurl guisp=#d96e8a
highlight SpellCap guifg=NONE guibg=NONE gui=undercurl guisp=#75d7d8
highlight SpellRare guifg=NONE guibg=NONE gui=undercurl guisp=#8cd991
highlight SpellLocal guifg=NONE guibg=NONE gui=undercurl guisp=#dbc570
highlight Pmenu guifg=#c6c6c6 guibg=#242322 gui=none
highlight PmenuSel guifg=#000000 guibg=#7eaefd gui=none
highlight PmenuSbar guifg=#ff5fd7 guibg=#262626 gui=none
highlight PmenuSbar guifg=#ff5fd7 guibg=#2e2d2b gui=none
highlight PmenuThumb guifg=#2e2d2b guibg=#ff5fd7 gui=none
highlight TabLine guifg=#808080 guibg=#242322 gui=none
highlight TablineSel guifg=#000000 guibg=#9e9e9e gui=none
highlight TablineFill guifg=#808080 guibg=#242322 gui=none
highlight CursorColumn guifg=NONE guibg=#383734 gui=none
highlight CursorLine guifg=NONE guibg=#383734 gui=none
highlight ColorColumn guifg=NONE guibg=#383734 gui=none
highlight Cursor guifg=#000000 guibg=#e2e2e2 gui=none
highlight lCursor guifg=#000000 guibg=#e2e2e2 gui=none
highlight Special guifg=#ce6bd0 guibg=NONE gui=none
highlight Identifier guifg=#75d7d8 guibg=NONE gui=none
highlight PreProc guifg=#dbc570 guibg=NONE gui=none
highlight Number guifg=#dbc570 guibg=NONE gui=none
highlight Function guifg=#88da77 guibg=NONE gui=none
highlight htmlEndTag guifg=#88da77 guibg=NONE gui=none
highlight xmlEndTag guifg=#88da77 guibg=NONE gui=none
if g:kolor_bold==0
highlight ErrorMsg guifg=#d96e8a guibg=NONE gui=none
highlight Search guifg=#ff8901 guibg=NONE gui=none
highlight MoreMsg guifg=#8cd991 guibg=NONE gui=none
highlight ModeMsg guifg=#e2e2e2 guibg=NONE gui=none
highlight CursorLineNr guifg=#e2e2e2 guibg=#383734 gui=none
highlight Question guifg=#75d7d8 guibg=NONE gui=none
highlight WarningMsg guifg=#ff5fd7 guibg=NONE gui=none
highlight Statement guifg=#d96e8a guibg=NONE gui=none
highlight Type guifg=#a080ea guibg=NONE gui=none
highlight Error guifg=#d96e8a guibg=NONE gui=none
highlight Todo guifg=#75d7d8 guibg=NONE gui=none
highlight Keyword guifg=#d96e8a guibg=NONE gui=none
highlight Title guifg=#a080ea guibg=NONE gui=none
if g:kolor_alternative_matchparen==0
highlight MatchParen guifg=#2e2c29 guibg=#ff5fd7 gui=none
else
highlight MatchParen guifg=#2e2c29 guibg=#9e9e9e gui=none
endif
else
highlight ErrorMsg guifg=#d96e8a guibg=NONE gui=bold
highlight Search guifg=#ff8901 guibg=NONE gui=bold
highlight MoreMsg guifg=#8cd991 guibg=NONE gui=bold
highlight ModeMsg guifg=#e2e2e2 guibg=NONE gui=bold
highlight CursorLineNr guifg=#e2e2e2 guibg=#383734 gui=bold
highlight Question guifg=#75d7d8 guibg=NONE gui=bold
highlight WarningMsg guifg=#ff5fd7 guibg=NONE gui=bold
highlight Statement guifg=#d96e8a guibg=NONE gui=bold
highlight Type guifg=#a080ea guibg=NONE gui=bold
highlight Error guifg=#d96e8a guibg=NONE gui=bold
highlight Todo guifg=#75d7d8 guibg=NONE gui=bold
highlight Keyword guifg=#d96e8a guibg=NONE gui=bold
highlight Title guifg=#a080ea guibg=NONE gui=bold
if g:kolor_alternative_matchparen==0
highlight MatchParen guifg=#2e2c29 guibg=#ff5fd7 gui=bold
else
highlight MatchParen guifg=#2e2c29 guibg=#9e9e9e gui=bold
endif
endif
if g:kolor_italic==0
highlight Comment guifg=#808080 guibg=NONE gui=none
highlight Constant guifg=#e6987a guibg=NONE gui=none
highlight String guifg=#ad8788 guibg=NONE gui=none
else
highlight Comment guifg=#808080 guibg=NONE gui=italic
highlight Constant guifg=#e6987a guibg=NONE gui=italic
highlight String guifg=#ad8788 guibg=NONE gui=italic
endif
if g:kolor_underlined==0
highlight Underlined guifg=#7eaefd guibg=NONE gui=none
else
highlight Underlined guifg=#7eaefd guibg=NONE gui=underline
endif

if &t_Co > 255
highlight Normal ctermfg=251 ctermbg=235 cterm=none
highlight SpecialKey ctermfg=111 ctermbg=none cterm=none
highlight NonText ctermfg=111 ctermbg=235 cterm=none
highlight Directory ctermfg=180 ctermbg=none cterm=none
highlight IncSearch ctermfg=0 ctermbg=206 cterm=none
highlight LineNr ctermfg=244 ctermbg=234 cterm=none
highlight StatusLine ctermfg=0 ctermbg=247 cterm=none
highlight StatusLineNC ctermfg=247 ctermbg=238 cterm=none
highlight VertSplit ctermfg=238 ctermbg=238 cterm=none
highlight Visual ctermfg=254 ctermbg=240 cterm=none
highlight VisualNOS ctermfg=254 ctermbg=none cterm=underline
highlight WildMenu ctermfg=0 ctermbg=80 cterm=none
highlight Folded ctermfg=103 ctermbg=234 cterm=none
highlight FoldColumn ctermfg=103 ctermbg=234 cterm=none
highlight DiffAdd ctermfg=none ctermbg=23 cterm=none
highlight DiffChange ctermfg=none ctermbg=56 cterm=none
highlight DiffDelete ctermfg=168 ctermbg=96 cterm=none
highlight DiffText ctermfg=0 ctermbg=80 cterm=none
highlight SignColumn ctermfg=244 ctermbg=235 cterm=none
highlight Conceal ctermfg=251 ctermbg=none cterm=none
highlight SpellBad ctermfg=168 ctermbg=none cterm=underline
highlight SpellCap ctermfg=80 ctermbg=none cterm=underline
highlight SpellRare ctermfg=121 ctermbg=none cterm=underline
highlight SpellLocal ctermfg=186 ctermbg=none cterm=underline
highlight Pmenu ctermfg=251 ctermbg=234 cterm=none
highlight PmenuSel ctermfg=0 ctermbg=111 cterm=none
highlight PmenuSbar ctermfg=206 ctermbg=235 cterm=none
highlight PmenuThumb ctermfg=235 ctermbg=206 cterm=none
highlight TabLine ctermfg=244 ctermbg=234 cterm=none
highlight TablineSel ctermfg=0 ctermbg=247 cterm=none
highlight TablineFill ctermfg=244 ctermbg=234 cterm=none
highlight CursorColumn ctermfg=none ctermbg=236 cterm=none
highlight CursorLine ctermfg=none ctermbg=236 cterm=none
highlight ColorColumn ctermfg=none ctermbg=236 cterm=none
highlight Cursor ctermfg=0 ctermbg=254 cterm=none
highlight Comment ctermfg=244 ctermbg=none cterm=none
highlight Constant ctermfg=180 ctermbg=none cterm=none
highlight Special ctermfg=176 ctermbg=none cterm=none
highlight Identifier ctermfg=80 ctermbg=none cterm=none
highlight PreProc ctermfg=186 ctermbg=none cterm=none
highlight String ctermfg=138 ctermbg=none cterm=none
highlight Number ctermfg=186 ctermbg=none cterm=none
highlight Function ctermfg=114 ctermbg=none cterm=none
highlight htmlEndTag ctermfg=114 ctermbg=none cterm=none
highlight xmlEndTag ctermfg=114 ctermbg=none cterm=none
if g:kolor_bold==0
highlight ErrorMsg ctermfg=168 ctermbg=none cterm=none
highlight Search ctermfg=208 ctermbg=none cterm=none
highlight MoreMsg ctermfg=121 ctermbg=none cterm=none
highlight ModeMsg ctermfg=254 ctermbg=none cterm=none
highlight CursorLineNr ctermfg=254 ctermbg=236 cterm=none
highlight Question ctermfg=80 ctermbg=none cterm=none
highlight WarningMsg ctermfg=206 ctermbg=none cterm=none
highlight Statement ctermfg=168 ctermbg=none cterm=none
highlight Type ctermfg=141 ctermbg=none cterm=none
highlight Error ctermfg=168 ctermbg=none cterm=none
highlight Todo ctermfg=80 ctermbg=none cterm=none
highlight Keyword ctermfg=168 ctermbg=none cterm=none
highlight Title ctermfg=141 ctermbg=none cterm=none
if g:kolor_alternative_matchparen==0
highlight MatchParen ctermfg=235 ctermbg=206 cterm=none
else
highlight MatchParen ctermfg=235 ctermbg=247 cterm=none
endif
else
highlight ErrorMsg ctermfg=168 ctermbg=none cterm=bold
highlight Search ctermfg=208 ctermbg=none cterm=bold
highlight MoreMsg ctermfg=121 ctermbg=none cterm=bold
highlight ModeMsg ctermfg=254 ctermbg=none cterm=bold
highlight CursorLineNr ctermfg=254 ctermbg=236 cterm=bold
highlight Question ctermfg=80 ctermbg=none cterm=bold
highlight WarningMsg ctermfg=206 ctermbg=none cterm=bold
highlight Statement ctermfg=168 ctermbg=none cterm=bold
highlight Type ctermfg=141 ctermbg=none cterm=bold
highlight Error ctermfg=168 ctermbg=none cterm=bold
highlight Todo ctermfg=80 ctermbg=none cterm=bold
highlight Keyword ctermfg=168 ctermbg=none cterm=bold
highlight Title ctermfg=141 ctermbg=none cterm=bold
if g:kolor_alternative_matchparen==0
highlight MatchParen ctermfg=235 ctermbg=206 cterm=bold
else
highlight MatchParen ctermfg=235 ctermbg=247 cterm=bold
endif
endif
if g:kolor_underlined==0
highlight Underlined ctermfg=111 ctermbg=none cterm=none
else
highlight Underlined ctermfg=111 ctermbg=none cterm=underline
endif
end