在Putty + tmux上运行Vim的糟糕颜色

时间:2013-11-04 15:56:09

标签: vim putty tmux

我正在尝试在我的Vim中设置base16-tomorrow colorscheme,它运行在tmux + Putty之上。我几乎把Google上的每个链接都用来让它运行起来,但没有任何事情发生= S

这就是colorscheme现在的样子: Current l&f of base16-tomorrow on my PC

它应该如何: enter image description here

奇怪的是,无论我选择哪种base16颜色,它看起来都是一样的。

关于我的shell的一些信息:

$ echo $TERM        # on Putty
xterm-256color      # I configured putty to 256 colors and use this identifier
$ tmux
$ echo $TERM
screen-256color

此外,在Vim中,t_Co变量设置为256。

我该如何解决这个问题?

2 个答案:

答案 0 :(得分:0)

我在tmux中显示颜色方案时遇到了类似的问题 您是否尝试将set -g default-terminal "screen-256color"添加到.tmux.conf

答案 1 :(得分:0)

尽管我的.tmux.conf文件中有此文件,但并没有帮助:set -g default-terminal "screen-256color"

但是,@ xthrd的这个帮助我:

  

您是否尝试过使用tmux -2运行tmux以强制使用256色模式?