【问题标题】:VIM not using proper colorscheme in tmuxVIM 没有在 tmux 中使用正确的配色方案
【发布时间】:2021-06-19 18:11:16
【问题描述】:

我已经提到过这个问题,我尝试了许多建议的更改,并且暂时奏效了。我将我的 Ubuntu 机器更新到最新版本,它破坏了我的 tmux。 lose vim colorscheme in tmux mode

目前在 tmux 之外一切正常,但 tmux 中的 vim 有问题。

我的 vimrc :

call plug#begin('~/.vim/plugged')
Plug 'arcticicestudio/nord-vim'
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
call plug#end()

set termguicolors
set hlsearch
syntax on
colorscheme nord

我已经在我的 bashrc 中设置了这两个变量

export TERM="xterm-256color"
alias tmux='tmux -2'

有人建议在 tmux.conf 中添加 set -g default-terminal "xterm",但添加它会丢失我的 tmux 中的所有颜色。

我正在使用这个https://github.com/lemnos/theme.sh 来设置我的终端的颜色方案。

我不明白我做错了什么。

【问题讨论】:

    标签: vim tmux vim-plugin


    【解决方案1】:

    我最近自己也遇到了这个问题。在比较你的配置文件和我的配置文件时,我比你多几行。

    tmux.conf:

    set -g default-terminal "tmux-256color"
    set -ga terminal-overrides ",*256col*:Tc"
    

    vimrc

    set term=xterm-256color
    

    【讨论】:

      猜你喜欢
      • 2014-01-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-11-07
      • 1970-01-01
      • 2014-05-31
      • 2012-04-26
      相关资源
      最近更新 更多