加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

Vim颜色配置

发布时间:2020-12-15 16:52:01 所属栏目:安全 来源:网络整理
导读:自己习惯的vim颜色配置 1: 将下面内容复制到文件wangcq327_20170620.vim中,然后将此文件放于vim color目录 如 .vim/colors/wangcq327_20170620.vim 2: 然后在.vimrc中添加如下: colorscheme wangcq327_20170620 syntax enable syntax on "--------------

自己习惯的vim颜色配置

1:将下面内容复制到文件wangcq327_20170620.vim中,然后将此文件放于vim color目录 如

.vim/colors/wangcq327_20170620.vim

2:然后在.vimrc中添加如下:

colorscheme wangcq327_20170620
syntax enable
syntax on



"------------------------------------------------------start

"%% SiSU Vim color file

" Slate Maintainer: Ralph Amissah <ralph@amissah.com>
" (originally looked at desert Hans Fugal <hans@fugal.net> http://hans.fugal.net/vim/colors/desert.vim (2003/05/06)
:set background=dark
:highlight clear
if version > 580
hi clear
if exists("syntax_on")
syntax reset
endif
endif
let colors_name = "wangcq327_20170620"


:hi Normal guifg=#909090 guibg=grey15
:hi Comment term=bold ctermfg=11 guifg=#3A3A3A
:hi Constant guifg=red ctermfg=brown
:hi Operator guifg=red ctermfg=red
:hi Include guifg=#5555AA ctermfg=red
:hi PreProc guifg=#5555AA ctermfg=red
:hi LineNr guifg=#808080 ctermfg=3
:hi Type guifg=#00CC00 ctermfg=2
:hi Statement guifg=#00CC00 ctermfg=lightblue
:hi String guifg=red ctermfg=darkcyan


:hi Cursor guibg=khaki guifg=slategrey
:hi VertSplit guibg=#c2bfa5 guifg=grey40 gui=none cterm=reverse
:hi Folded guibg=black guifg=grey40 ctermfg=grey ctermbg=darkgrey
:hi FoldColumn guibg=black guifg=grey20 ctermfg=4 ctermbg=7
:hi IncSearch guifg=green guibg=black cterm=none ctermfg=yellow ctermbg=green
:hi ModeMsg guifg=goldenrod cterm=none ctermfg=brown
:hi MoreMsg guifg=SeaGreen ctermfg=darkgreen
:hi NonText guifg=RoyalBlue guibg=grey15 cterm=bold ctermfg=blue
:hi Question guifg=springgreen ctermfg=green
:hi Search guibg=peru guifg=wheat cterm=none ctermfg=grey ctermbg=blue
:hi SpecialKey guifg=yellowgreen ctermfg=darkgreen
:hi StatusLine guibg=#c2bfa5 guifg=black gui=none cterm=bold,reverse
:hi StatusLineNC guibg=#c2bfa5 guifg=grey40 gui=none cterm=reverse
:hi Title guifg=gold gui=bold cterm=bold ctermfg=yellow
:hi Visual gui=none guifg=khaki guibg=olivedrab cterm=reverse
:hi WarningMsg guifg=salmon ctermfg=1
:hi Special guifg=darkkhaki ctermfg=brown
:hi Identifier guifg=salmon ctermfg=red
:hi Define guifg=gold gui=bold ctermfg=yellow
:hi Function guifg=yellow ctermfg=brown
:hi Structure guifg=green ctermfg=green
:hi Ignore guifg=grey40 cterm=bold ctermfg=7
:hi Todo guifg=orangered guibg=yellow2
:hi Directory ctermfg=darkcyan
:hi ErrorMsg cterm=bold guifg=White guibg=Red cterm=bold ctermfg=7 ctermbg=1
:hi VisualNOS cterm=bold,underline
:hi WildMenu ctermfg=0 ctermbg=3
:hi DiffAdd ctermbg=4
:hi DiffChange ctermbg=5
:hi DiffDelete cterm=bold ctermfg=4 ctermbg=6
:hi DiffText cterm=bold ctermbg=1
:hi Underlined cterm=underline ctermfg=5
:hi Error guifg=White guibg=Red cterm=bold ctermfg=7 ctermbg=1

:hi SpellErrors guifg=White guibg=Red cterm=bold ctermfg=7 ctermbg=1

"-------------------------------------------------end

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读