BBCCBB
V2EX  ›  macOS

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

  •  
  •   BBCCBB · Aug 18, 2018 · 5076 views
    This topic created in 3014 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
    congeec
    Aug 18, 2018 via iPhone❤️1
    1
    set t_Co=256 ?
    或者改 terminal 配色
    punderson
    punderson
    Aug 18, 2018❤️1
    2


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

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

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