vim color 配置

本文介绍了一个名为 Murphy 的 Vim 配色方案配置文件,详细展示了如何通过配置高亮 (hi) 命令来定义不同语法元素的颜色和显示属性,包括 Normal、Comment、Constant 等多种文本类型。
" local syntax file - set colors on a per-machine basis:
" vim: tw=0 ts=4 sw=4
" Vim color file
" Maintainer: Ron Aaron <ron@ronware.org>
" Last Change: 2003 May 02


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


hi Normal ctermbg=Black  ctermfg=lightgreen guibg=lightyellow    guifg=black
hi Comment term=bold  ctermfg=LightRed   guifg=blue
hi Constant term=underline ctermfg=LightGreen guifg=darkgraygui=NONE


hi Identifier term=underline ctermfg=LightCyan  guifg=#00ffff
hi Ignore   ctermfg=black guifg=bg
hi PreProc term=underline ctermfg=LightBlue  guifg=darkred   gui=NONE
hi Search term=reverse guifg=whiteguibg=Blue
hi Special term=bold  ctermfg=LightRed   guifg=magenta
hi Statement term=bold  ctermfg=Yellow guifg=DarkMagenta gui=bold
hi Type   ctermfg=LightGreen guifg=darkgreen        gui=bold
hi Error term=reverse   ctermbg=Red ctermfg=White guibg=Red  guifg=White
hi Todo term=standout  ctermbg=Yellow ctermfg=Black guifg=Blue guibg=Yellow
" From the source:
hi Cursor  guifg=Orchidguibg=fg
hi Directory term=bold  ctermfg=LightCyan  guifg=Cyan
hi ErrorMsg term=standout  ctermbg=DarkRed ctermfg=White guibg=Red guifg=White
hi IncSearch term=reverse   cterm=reverse guifg=white   guibg=black
hi LineNr term=underline ctermfg=Yellow guibg=black        guifg=Yellow
hi ModeMsg term=bold  cterm=bold gui=bold
hi MoreMsg term=bold  ctermfg=LightGreen gui=boldguifg=SeaGreen
hi NonText term=bold  ctermfg=Blue gui=boldguifg=Blue
hi Question term=standout  ctermfg=LightGreen gui=boldguifg=Cyan
hi SpecialKey term=bold  ctermfg=LightBlue  guifg=Cyan


hi StatusLine term=reverse,bold cterm=reverse   gui=NONEguifg=White guibg=darkblue
hi StatusLineNC term=reverse   cterm=reverse  gui=NONE guifg=white guibg=#333333
hi Title term=bold  ctermfg=LightMagenta gui=boldguifg=Pink
hi WarningMsg term=standout  ctermfg=LightRed   guifg=Red
hi Visual term=reverse   cterm=reverse gui=NONEguifg=white guibg=darkgreen
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值