找回密码
 欢迎注册
查看: 1584|回复: 6

[讨论] 你们写代码,都喜欢用什么样的配色?

[复制链接]
发表于 2023-5-30 11:25:49 | 显示全部楼层 |阅读模式

马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。

您需要 登录 才可以下载或查看,没有账号?欢迎注册

×
本帖最后由 nyy 于 2023-5-30 13:22 编辑

这是我写的lingo代码,

https://bbs.emath.ac.cn/forum.ph ... 7&fromuid=14149

配色并不满意,你们用什么样的配色呢?
QQ截图20230530132055.png
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2023-5-31 08:46:34 | 显示全部楼层
  1. " Vim color File
  2. " Name:                        biogoo
  3. " Maintainer:        Benjamin Esham 电子邮件省略!
  4. " Last Change:        2006-11-20
  5. " Version:                1.5
  6. "
  7. " Colorful text on a light gray background.  It's pretty easy on the eyes in
  8. " my opinion.  Any feedback is greatly appreciated!
  9. "
  10. " Installation:
  11. "        Copy to ~/.vim/colors; do :color biogoo
  12. "
  13. " Customization Options:
  14. "        Use a 'normal' cursor color:
  15. "                let g:biogoo_normal_cursor = 1
  16. "
  17. " Props:
  18. "        Jani Nurminen's zenburn.vim as an example file.
  19. "        Scott F. and Matt F. for feature suggestions.
  20. "        Bill McCarthy for his Vim mailing list post about Vim 7 support.
  21. "
  22. " Version History:
  23. "        1.5:        should fully support Vim 7 now
  24. "        1.4:        more support for Vim 7: added the `MatchParen' group for ()[]{} matching
  25. "        1.3:        added support for Vim 7: added groups for the new spellchecking, and
  26. "                        added a conditional to display Visual mode correctly in any version.               
  27. "        1.2:        added `SpellErrors' group for use with vimspell.
  28. "        1.1:        added `IncSearch' group for improved visibility in incremental searches.
  29. "        1.0:        minor tweaks
  30. "        0.95:        initial release
  31. "
  32. " TODO: Add new groups as needed.  E-mail me with any suggestions!

  33. set background=light
  34. hi clear
  35. if exists("syntax_on")
  36.         syntax reset
  37. endif
  38. let g:colors_name = "biogoo"

  39. hi Comment                        guifg=#0000c3
  40. hi Constant                        guifg=#0000ff
  41. hi CursorColumn                guibg=#ffffff
  42. hi CursorLine                guibg=#ffffff
  43. hi Delimiter                guifg=#00007f
  44. hi DiffAdd                        guifg=#007f00 guibg=#e5e5e5
  45. hi DiffChange                guifg=#00007f guibg=#e5e5e5
  46. hi DiffDelete                guifg=#7f0000 guibg=#e5e5e5
  47. hi DiffText                        guifg=#ee0000 guibg=#e5e5e5
  48. hi Directory                guifg=#b85d00
  49. hi Error                        guifg=#d6d6d6 guibg=#7f0000
  50. hi ErrorMsg                        guifg=#ffffff guibg=#ff0000 gui=bold
  51. hi Float                        guifg=#b85d00
  52. hi FoldColumn                guifg=#00007f guibg=#e5e5e5
  53. hi Folded                        guifg=#00007f guibg=#e5e5e5
  54. hi Function                        guifg=#7f0000
  55. hi Identifier                guifg=#004000
  56. hi Include                        guifg=#295498 gui=bold
  57. hi IncSearch                guifg=#ffffff guibg=#0000ff gui=bold
  58. hi LineNr                        guifg=#303030 guibg=#e5e5e5 gui=underline
  59. hi Keyword                        guifg=#00007f
  60. hi Macro                        guifg=#295498
  61. hi MatchParen                guifg=#ffffff guibg=#00a000
  62. hi ModeMsg                        guifg=#00007f
  63. hi MoreMsg                        guifg=#00007f
  64. hi NonText                        guifg=#007f00
  65. hi Normal                        guifg=#000000 guibg=#d6d6d6
  66. hi Number                        guifg=#b85d00
  67. hi Operator                        guifg=#00007f
  68. hi Pmenu                        guifg=#000000 guibg=#cc9999
  69. hi PmenuSel                        guifg=#ffffff guibg=#993333
  70. hi PmenuSbar                guibg=#99cc99
  71. hi PmenuThumb                guifg=#339933
  72. hi PreCondit                guifg=#295498 gui=bold
  73. hi PreProc                        guifg=#0c3b6b gui=bold
  74. hi Question                        guifg=#00007f
  75. hi Search                        guibg=#ffff00
  76. hi Special                        guifg=#007f00
  77. hi SpecialKey                guifg=#00007f
  78. hi SpellBad                        guifg=#ffffff guibg=#7f0000 gui=undercurl guisp=#d6d6d6
  79. hi SpellCap                        guifg=#ffffff guibg=#7f007f gui=undercurl guisp=#d6d6d6
  80. hi SpellLocal                guifg=#ffffff guibg=#007f7f gui=undercurl guisp=#d6d6d6
  81. hi SpellRare                guifg=#ffffff guibg=#b85d00 gui=undercurl guisp=#d6d6d6
  82. hi Statement                guifg=#00007f gui=none
  83. hi StatusLine                guifg=#00007f guibg=#ffffff
  84. hi StatusLineNC                guifg=#676767 guibg=#ffffff
  85. hi String                        guifg=#d10000
  86. hi TabLine                        guifg=#222222 guibg=#d6d6d6
  87. hi TabLineFill                guifg=#d6d6d6
  88. hi TabLineSel                guifg=#00007f guibg=#eeeeee gui=bold
  89. hi Title                        guifg=#404040 gui=bold
  90. hi Todo                                guifg=#00007f guibg=#e5e5e5 gui=underline
  91. hi Type                                guifg=#540054 gui=bold
  92. hi Underlined                guifg=#b85d00
  93. hi VertSplit                guifg=#676767 guibg=#ffffff
  94. if version < 700
  95.         hi Visual                guifg=#7f7f7f guibg=#ffffff
  96. else
  97.         hi Visual                guifg=#ffffff guibg=#7f7f7f
  98. endif
  99. hi VisualNOS                guifg=#007f00 guibg=#e5e5e5
  100. hi WarningMsg                guifg=#500000
  101. hi WildMenu                        guifg=#540054

  102. " Non-standard highlighting (e.g. for plugins)

  103. " vimspell
  104. hi SpellErrors                guifg=#ffffff guibg=#7f0000 gui=undercurl guisp=#d6d6d6

  105. if !exists("g:biogoo_normal_cursor")
  106.         " use a gray-on-blue cursor
  107.         hi Cursor                guifg=#ffffff guibg=#00007f
  108. endif

  109. " vim:noet:ts=4 sw=4
复制代码


这个vim的插件里面,有这么多的颜色可以配置,真的是太多了!
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2023-5-31 09:23:49 | 显示全部楼层
没语法高亮写代码,比吃菜没有盐还难受!
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2023-6-1 09:58:10 | 显示全部楼层
怎么没人出来共享一下?????
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2023-6-1 10:20:57 | 显示全部楼层
C:\Program Files (x86)\Vim\vim82\syntax\vim.vim
我搜索CursorIM,然后找到了上面的文件,在里面找到了很多。

  1. 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
复制代码

  1. 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
复制代码
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2023-6-2 10:15:39 | 显示全部楼层
VIM学习笔记 语法高亮文件 (Syntax) - YYQ的文章 - 知乎
https://zhuanlan.zhihu.com/p/43194380

VIM学习笔记 语法高亮 (Syntax Highlight) - YYQ的文章 - 知乎
https://zhuanlan.zhihu.com/p/25292625

这两篇很好
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
 楼主| 发表于 2023-6-5 08:50:22 | 显示全部楼层
nyy 发表于 2023-6-2 10:15
VIM学习笔记 语法高亮文件 (Syntax) - YYQ的文章 - 知乎
https://zhuanlan.zhihu.com/p/43194380

我觉得语法高亮对我来说更有意义,我最近渐渐地懂了如何进行语法高亮
毋因群疑而阻独见  毋任己意而废人言
毋私小惠而伤大体  毋借公论以快私情
您需要登录后才可以回帖 登录 | 欢迎注册

本版积分规则

小黑屋|手机版|数学研发网 ( 苏ICP备07505100号 )

GMT+8, 2024-4-17 06:33 , Processed in 0.048178 second(s), 19 queries .

Powered by Discuz! X3.5

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表