Ubuntu、vim 和日晒调色板 [英] Ubuntu, vim, and the solarized color palette

查看:40
本文介绍了Ubuntu、vim 和日晒调色板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我真的很想了解 solarized 配色方案 的所有丰富多彩的优点,但我不能似乎配置得恰到好处.
我的 .vim/colors 文件夹中有主要的曝光文件,我已将终端配置文件颜色设置为站点上列出的颜色,并添加了行

I'd really like to get in on all the colorful goodness of the solarized colorscheme, but I can't seem to get it configured just right.
I have the main solarized file in my .vim/colors folder, I've set my terminal profile colors to what is listed on the site, and I've added the lines

 set background=dark
 let g:solarized_termcolors=16
 colorscheme solarized

到我的 .vimrc,但 vim 看起来是灰色的,并且默认使用亮绿色.有什么想法吗?

to my .vimrc, but vim looks grey-ed out and is using a bright green color as the default. Any ideas?

推荐答案

以下是我对尝试的建议:

Here's my recommendation for things to try:

  1. 确保 syntax on 在你的 .vimrc 中
  2. 检查 t_Co vim 从你的术语模拟器中得到了什么(快速的 :echo &t_Co).如果是 8,您需要 se t_Co=16.您也可以尝试 se t_Co=256 尽管没有 let g:solarized_termcolors=16 这将使用 256 回退模式,这不是正确的配色方案.莉>
  1. ensure syntax on is in your .vimrc
  2. Check what t_Co vim has picked up from your term emulator (a quick :echo &t_Co). If it's 8 you'll want to se t_Co=16. You might also try se t_Co=256 though without let g:solarized_termcolors=16 this will use the 256 fallback mode, which isn't quite the correct color scheme.

我会针对以下问题对上述问题发表评论,但需要 50 的业力.请通过项目网站给我发送电子邮件,以进一步解决此问题,因为我正在为常见的颜色问题制定良好的演练.

I'd comment on the question above for the following, but karma of 50 is required. Please do email me via the project site to troubleshoot this further as I am in the process of establishing a good walkthrough for common color issues.

这篇关于Ubuntu、vim 和日晒调色板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆