Vim配色文件详细参数

Vim配色文件

 

1、可能很多人觉得自己的Vim配色方案选择太少了,想自己自定义,其实只要修改配色文件就行了,将自己编写或修改的文件放到(Vim安装盘符):\Program Files (x86)\Vim\vim74\colors下就可以在配色方案中(编辑->配色方案)找到自己添加的新方案了,方案后缀名为.vim,具体代码如下:

" local syntax file - set colors on a per-machine basis:
" vim: tw=0 ts=4 sw=4
" Vim color file
" Author:       Albert 
" CreatDate:    2014 03 21

set background=dark
hi clear
if exists("syntax_on")
  syntax reset
endif

let g:colors_name = "Albert"

hi Normal		guifg=Green			guibg=black
hi Comment	term=bold		ctermfg=DarkCyan		guifg=#80a0ff
hi Constant	term=underline	ctermfg=Red		guifg=Red
hi Special	term=bold		ctermfg=Red	guifg=Red
hi SpecialKey ctermfg=DarkBlue	   guifg=Blue
hi Identifier term=underline	cterm=bold			ctermfg=Cyan guifg=#40ffff
hi Statement term=bold		ctermfg=Yellow gui=bold	guifg=#aa4444
hi PreProc	term=underline	ctermfg=Blue	guifg=#ff80ff
"hi Type	term=underline		ctermfg=Green	guifg=#60ff60 gui=bold
hi Function	term=bold		ctermfg=White guifg=White
hi Repeat	term=underline	ctermfg=White		guifg=white
hi Operator				ctermfg=Red			guifg=Red
hi Ignore				ctermfg=black		guifg=bg
hi Error	term=reverse ctermbg=Red ctermfg=White guibg=Red guifg=White
hi Todo	term=standout ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow

" syntax highlighting
"hi Comment    cterm=NONE ctermfg=DarkRed     gui=NONE guifg=red2
"hi Constant   cterm=NONE ctermfg=DarkGreen   gui=NONE guifg=green3
"hi Identifier cterm=NONE ctermfg=DarkCyan    gui=NONE guifg=cyan4
"hi PreProc    cterm=NONE ctermfg=DarkMagenta gui=NONE guifg=magenta3
"hi Special    cterm=NONE ctermfg=LightRed    gui=NONE guifg=deeppink
"hi Statement  cterm=bold ctermfg=Blue	     gui=bold guifg=blue
hi Type	      cterm=NONE ctermfg=Blue	     gui=bold guifg=DarkGreen

" Common groups that link to default highlighting.
" You can specify other highlighting easily.
hi link String	Constant
hi link Character	Constant
hi link Number	Constant
hi link Boolean	Constant
hi link Float		Number
hi link Conditional	Repeat
hi link Label		Statement
hi link Keyword	Statement
hi link Exception	Statement
hi link Include	PreProc
hi link Define	PreProc
hi link Macro		PreProc
hi link PreCondit	PreProc
hi link StorageClass	Type
hi link Structure	Type
hi link Typedef	Type
hi link Tag		Special
hi link SpecialChar	Special
hi link Delimiter	Special
hi link SpecialComment Special
hi link Debug		Special
 

2.实现的效果我个人还是比较喜欢的,如下图:

Vim配色文件详细参数_第1张图片

3.如果你也喜欢自己就来试一试吧!

4下载地址:[email protected]:snippets/338257.git

你可能感兴趣的:(Vim)