far2go
V2EX  ›  问与答

新人请教安装 terminal 和 vim 配色

  •  
  •   far2go · Oct 25, 2014 · 7812 views
    This topic created in 4409 days ago, the information mentioned may be changed or developed.
    安装过程中有几个问题想请教大家:
    1.我把tomorrow scheme 相应的 terminal 文件导入进去,为何ls -l 是还是只有一种颜色?
    2.在vim中也是如此,我已经在.vimrc中添加 colorscheme Tomorrow-Night-Eighties 和 syntax on了.
    3.还有就是对于缩进等配置是否还要自己添加?
    12 replies  •  2014-10-25 17:00:27 +08:00
    songyuwen
    songyuwen
    Oct 25, 2014
    1
    新开一个窗口: Shell > New Window > tomorrow 再试试.

    另外, 你可以安装`oh-my-zsh`(还有一个zsh-syntax-highlighting可以高亮命令),应该可以显示彩色, bash默认大部分都是单色的.

    打开vim, 你输入`:colorscheme Tomorrow-Night-Eighties` 看看有没有效果.
    songyuwen
    songyuwen
    Oct 25, 2014
    2
    对了你应该把`Tomorrow-Night-Eighties.vim`放在 `~/.vim/colors`目录下.

    vim 这是一个很实用的插件: [https://github.com/gmarik/Vundle.vim](https://github.com/gmarik/Vundle.vim)
    vulgur
    vulgur
    Oct 25, 2014
    3
    建议装oh-my-fish
    ll0xff
    ll0xff
    Oct 25, 2014
    4
    TERM=xterm-256color ? 缩进多少是要自己配置的
    far2go
    far2go
    OP
    Oct 25, 2014
    5
    @songyuwen 不知道为什么还是不行,然后你推荐的插件404了。
    skydiver
    skydiver
    Oct 25, 2014
    6
    ls -l --color=auto
    这是ls的问题吧……
    far2go
    far2go
    OP
    Oct 25, 2014
    7
    @ll0xff 我以为和Sublime那样配置文件里面已经配置好了。TERM=xterm-256color 添加到.vimrc吗?
    far2go
    far2go
    OP
    Oct 25, 2014
    8
    @vulgur 谢谢,我看看。
    ll0xff
    ll0xff
    Oct 25, 2014
    9
    @far2go bash的话把`TERM=xterm-256color`加在 `.bashrc` 里,`set t_Co=256`加在`.vimrc`里。不知道你用的终端是什么?我用konsole在`setting>>Environment`处添加`TERM=xterm-256color`即可
    far2go
    far2go
    OP
    Oct 25, 2014
    10
    @ll0xff vim还是不行。。我.vimrc 里面的内容只有
    colorscheme Tomorrow-Night-Eighties
    syntax on
    set t_Co=256
    我用的是bash。
    sinxccc
    sinxccc
    Oct 25, 2014
    11
    ls -l -G

    先看 man 没坏处。
    far2go
    far2go
    OP
    Oct 25, 2014
    12
    我最后用iterm2 搞定了,感谢各位。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4100 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 34ms · UTC 05:46 · PVG 13:46 · LAX 21:46 · JFK 00:46
    ♥ Do have faith in what you're doing.