你们写代码,都喜欢用什么样的配色?
本帖最后由 nyy 于 2023-5-30 13:22 编辑这是我写的lingo代码,
https://bbs.emath.ac.cn/forum.php?mod=redirect&goto=findpost&ptid=18912&pid=95837&fromuid=14149
配色并不满意,你们用什么样的配色呢? " Vim color File
" Name: biogoo
" Maintainer: Benjamin Esham 电子邮件省略!
" Last Change: 2006-11-20
" Version: 1.5
"
" Colorful text on a light gray background.It's pretty easy on the eyes in
" my opinion.Any feedback is greatly appreciated!
"
" Installation:
" Copy to ~/.vim/colors; do :color biogoo
"
" Customization Options:
" Use a 'normal' cursor color:
" let g:biogoo_normal_cursor = 1
"
" Props:
" Jani Nurminen's zenburn.vim as an example file.
" Scott F. and Matt F. for feature suggestions.
" Bill McCarthy for his Vim mailing list post about Vim 7 support.
"
" Version History:
" 1.5: should fully support Vim 7 now
" 1.4: more support for Vim 7: added the `MatchParen' group for ()[]{} matching
" 1.3: added support for Vim 7: added groups for the new spellchecking, and
" added a conditional to display Visual mode correctly in any version.
" 1.2: added `SpellErrors' group for use with vimspell.
" 1.1: added `IncSearch' group for improved visibility in incremental searches.
" 1.0: minor tweaks
" 0.95: initial release
"
" TODO: Add new groups as needed.E-mail me with any suggestions!
set background=light
hi clear
if exists("syntax_on")
syntax reset
endif
let g:colors_name = "biogoo"
hi Comment guifg=#0000c3
hi Constant guifg=#0000ff
hi CursorColumn guibg=#ffffff
hi CursorLine guibg=#ffffff
hi Delimiter guifg=#00007f
hi DiffAdd guifg=#007f00 guibg=#e5e5e5
hi DiffChange guifg=#00007f guibg=#e5e5e5
hi DiffDelete guifg=#7f0000 guibg=#e5e5e5
hi DiffText guifg=#ee0000 guibg=#e5e5e5
hi Directory guifg=#b85d00
hi Error guifg=#d6d6d6 guibg=#7f0000
hi ErrorMsg guifg=#ffffff guibg=#ff0000 gui=bold
hi Float guifg=#b85d00
hi FoldColumn guifg=#00007f guibg=#e5e5e5
hi Folded guifg=#00007f guibg=#e5e5e5
hi Function guifg=#7f0000
hi Identifier guifg=#004000
hi Include guifg=#295498 gui=bold
hi IncSearch guifg=#ffffff guibg=#0000ff gui=bold
hi LineNr guifg=#303030 guibg=#e5e5e5 gui=underline
hi Keyword guifg=#00007f
hi Macro guifg=#295498
hi MatchParen guifg=#ffffff guibg=#00a000
hi ModeMsg guifg=#00007f
hi MoreMsg guifg=#00007f
hi NonText guifg=#007f00
hi Normal guifg=#000000 guibg=#d6d6d6
hi Number guifg=#b85d00
hi Operator guifg=#00007f
hi Pmenu guifg=#000000 guibg=#cc9999
hi PmenuSel guifg=#ffffff guibg=#993333
hi PmenuSbar guibg=#99cc99
hi PmenuThumb guifg=#339933
hi PreCondit guifg=#295498 gui=bold
hi PreProc guifg=#0c3b6b gui=bold
hi Question guifg=#00007f
hi Search guibg=#ffff00
hi Special guifg=#007f00
hi SpecialKey guifg=#00007f
hi SpellBad guifg=#ffffff guibg=#7f0000 gui=undercurl guisp=#d6d6d6
hi SpellCap guifg=#ffffff guibg=#7f007f gui=undercurl guisp=#d6d6d6
hi SpellLocal guifg=#ffffff guibg=#007f7f gui=undercurl guisp=#d6d6d6
hi SpellRare guifg=#ffffff guibg=#b85d00 gui=undercurl guisp=#d6d6d6
hi Statement guifg=#00007f gui=none
hi StatusLine guifg=#00007f guibg=#ffffff
hi StatusLineNC guifg=#676767 guibg=#ffffff
hi String guifg=#d10000
hi TabLine guifg=#222222 guibg=#d6d6d6
hi TabLineFill guifg=#d6d6d6
hi TabLineSel guifg=#00007f guibg=#eeeeee gui=bold
hi Title guifg=#404040 gui=bold
hi Todo guifg=#00007f guibg=#e5e5e5 gui=underline
hi Type guifg=#540054 gui=bold
hi Underlined guifg=#b85d00
hi VertSplit guifg=#676767 guibg=#ffffff
if version < 700
hi Visual guifg=#7f7f7f guibg=#ffffff
else
hi Visual guifg=#ffffff guibg=#7f7f7f
endif
hi VisualNOS guifg=#007f00 guibg=#e5e5e5
hi WarningMsg guifg=#500000
hi WildMenu guifg=#540054
" Non-standard highlighting (e.g. for plugins)
" vimspell
hi SpellErrors guifg=#ffffff guibg=#7f0000 gui=undercurl guisp=#d6d6d6
if !exists("g:biogoo_normal_cursor")
" use a gray-on-blue cursor
hi Cursor guifg=#ffffff guibg=#00007f
endif
" vim:noet:ts=4 sw=4
这个vim的插件里面,有这么多的颜色可以配置,真的是太多了! 没语法高亮写代码,比吃菜没有盐还难受! 怎么没人出来共享一下????? C:\Program Files (x86)\Vim\vim82\syntax\vim.vim
我搜索CursorIM,然后找到了上面的文件,在里面找到了很多。
syn keyword vimGroup contained Comment Constant String Character Number Boolean Float Identifier Function Statement Conditional Repeat Label Operator Keyword Exception PreProc Include Define Macro PreCondit Type StorageClass Structure Typedef Special SpecialChar Tag Delimiter SpecialComment Debug Underlined Ignore Error Todo
syn keyword vimHLGroup contained ColorColumn Cursor CursorColumn CursorIM CursorLine CursorLineNr DiffAdd DiffChange DiffDelete DiffText Directory EndOfBuffer ErrorMsg FoldColumn Folded IncSearch LineNr LineNrAbove LineNrBelow MatchParen Menu ModeMsg MoreMsg NonText Normal Pmenu PmenuSbar PmenuSel PmenuThumb Question QuickFixLine Scrollbar Search SignColumn SpecialKey SpellBad SpellCap SpellLocal SpellRare StatusLine StatusLineNC StatusLineTerm TabLine TabLineFill TabLineSel Terminal Title Tooltip VertSplit Visual VisualNOS WarningMsg WildMenu
VIM学习笔记 语法高亮文件 (Syntax) - YYQ的文章 - 知乎
https://zhuanlan.zhihu.com/p/43194380
VIM学习笔记 语法高亮 (Syntax Highlight) - YYQ的文章 - 知乎
https://zhuanlan.zhihu.com/p/25292625
这两篇很好 nyy 发表于 2023-6-2 10:15
VIM学习笔记 语法高亮文件 (Syntax) - YYQ的文章 - 知乎
https://zhuanlan.zhihu.com/p/43194380
我觉得语法高亮对我来说更有意义,我最近渐渐地懂了如何进行语法高亮
页:
[1]