BBCCBB
V2EX  ›  macOS

[macos] Vim 配色显示很淡,有遇到的小伙伴吗?

  •  
  •   BBCCBB · Aug 18, 2018 · 4733 views
    This topic created in 2852 days ago, the information mentioned may be changed or developed.

    楼主用的是最近的 vim8, 设置了 termguicolors 选项的, 但是和 github repo 里的图片对比起来相差巨大,在 windows 上用 gvim 就没这种差别。

    gruvbox 仓库地址是。( https://github.com/morhetz/gruvbox

    图在下面:

    我是图

    烦请遇到的小伙伴赐教。也没搜索到,或许是我姿势不对?

    8 replies    2019-01-23 20:28:40 +08:00
    congeec
        1
    congeec  
       Aug 18, 2018 via iPhone   ❤️ 1
    set t_Co=256 ?
    或者改 terminal 配色
    punderson
        2
    punderson  
       Aug 18, 2018   ❤️ 1


    开启真彩色,还有就是 vim 版本不能太低。我用的也是别人的配置 https://github.com/songouyang/vimrc
    BBCCBB
        3
    BBCCBB  
    OP
       Aug 18, 2018
    @congeec t_Co=256 这个我设置了的,哈哈
    BBCCBB
        4
    BBCCBB  
    OP
       Aug 18, 2018
    @punderson termguicolors 已经开启,但是没效果。 😢 , 我看了你这个配置也看不出来啥,看来只能找个时间来弄个 mini .vimrc 一个一个的试了。3q
    punderson
        5
    punderson  
       Aug 18, 2018   ❤️ 1
    @BBCCBB #4 在用那套复杂配置之前,我是参考这个 https://github.com/wklken/k-vim/issues/297 解决的。
    baskershu
        6
    baskershu  
       Aug 18, 2018   ❤️ 1
    https://github.com/morhetz/gruvbox/wiki/Terminal-specific 如果使用的是 terminal 而不是 gui 的话,还需要这一步的
    BBCCBB
        7
    BBCCBB  
    OP
       Aug 18, 2018
    @punderson

    这个试了还是没啥效果,可能是我哪儿没弄对,有时间我弄个 mini vimrc 试试

    @baskershu
    这个我之前排查的时候就按照文档设置了,但是没啥效果,😂
    BBCCBB
        8
    BBCCBB  
    OP
       Jan 23, 2019
    问题解决,iterm2 里 Profiles -> Colors -> Minimum Contrast 设置小点就好了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   4866 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 41ms · UTC 01:06 · PVG 09:06 · LAX 18:06 · JFK 21:06
    ♥ Do have faith in what you're doing.