jimbinc
V2EX  ›  macOS

如何让mvim使用终端开启,或者说让mvim使用终端的配色方案

  •  
  •   jimbinc · Aug 13, 2012 · 4080 views
    This topic created in 5022 days ago, the information mentioned may be changed or developed.
    7 replies    1970-01-01 08:00:00 +08:00
    jimbinc
        1
    jimbinc  
    OP
       Aug 13, 2012
    补充:或者有类似终端grass的配色方案
    iwinux
        2
    iwinux  
       Aug 14, 2012   ❤️ 1
    终端开启:新建一个脚本 /usr/local/bin/vim,内容是 mvim -v -f $@

    配色:
    1. 确认你终端的环境变量 TERM 的值是 xterm-256color (echo $TERM 看看)
    2. 如果是 tmux 用户,把 set -g default-terminal "screen-256color" 这一句加到 .tmux.conf 里面
    jimbinc
        3
    jimbinc  
    OP
       Aug 14, 2012
    @iwinux 谢谢,虽然没效果,因为在mac下连/usr/local都没有^_^;我下载了个zenburn主题,现在赶紧还不错
    iwinux
        4
    iwinux  
       Aug 14, 2012
    @jimbinc 你没装Homebrew咩
    VeryCB
        5
    VeryCB  
       Aug 14, 2012
    在~/.bash_profile或者~/.zshrc里设置
    alias mvim="open -a MacVim"
    VeryCB
        6
    VeryCB  
       Aug 14, 2012
    终端的vim不是用的~/.vimrc里面的配色方案吗?
    jimbinc
        7
    jimbinc  
    OP
       Aug 14, 2012
    @VeryCB
    @iwinux
    谢谢,我发现如果用终端的配色方案语法高亮可能会比较麻烦,最后还是搞了个zenburn配色方案算了,那个很漂亮啊^_^
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   997 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 19:17 · PVG 03:17 · LAX 12:17 · JFK 15:17
    ♥ Do have faith in what you're doing.