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

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

问题描述

我真的想进入日晒颜色方案的所有色彩缤纷,但我可以' t似乎得到它的配置正确。

我有.vim / colors文件夹中的主要日历文件,我已将终端配置文件颜色设置为网站上列出的内容,添加行

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

到我的.vimrc,但vim看起来是灰色的,并且使用亮绿色作为默认值。任何想法?

解决方案

这是我建议尝试的事情:


  1. 确保上的语法在您的.vimrc
  2. 中。
  3. 检查t_Co vim从您的字词模拟器(快速:echo& t_Co )。如果是8,你会想要 se t_Co = 16 。你也可以尝试 se t_Co = 256 虽然没有 let g:solarized_termcolors = 16 这将使用256备用模式,


  4. 我对上述问题发表了以下评论,但50的羯磨是需要。请通过项目网站向我发送电子邮件,进一步解决此问题,因为我正在为常见的颜色问题建立一个良好的演练。


    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
    

    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. 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.

    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天全站免登陆