I am hoping someone can assist with my conundrum.
I have tmux and VIM setup as such on my local profile:
.tmux.conf
.vimrc
While in a tmux session, I ssh to a remote machine as a standard user and VIM uses the default colorscheme but the tmux session looks horrible with red text that is a bit overbearing to me. Of course, the same is seen if I switch to root on the remote machine. This only happens in while in a tmux session.
screenshot tmux session on remote machine
screenshot non-tmux session on remote machine
It looks as if tmux session on the remote machine is still using xterm-256color
Can anyone explain this behavior of the red text in VIM on a tmux session and how to fix it?
Thanks.
I have tmux and VIM setup as such on my local profile:
.tmux.conf
Code:
set -g default-terminal "xterm-256color"
.vimrc
Code:
set term=xterm-256color
colorscheme ron
While in a tmux session, I ssh to a remote machine as a standard user and VIM uses the default colorscheme but the tmux session looks horrible with red text that is a bit overbearing to me. Of course, the same is seen if I switch to root on the remote machine. This only happens in while in a tmux session.
screenshot tmux session on remote machine
screenshot non-tmux session on remote machine
It looks as if tmux session on the remote machine is still using xterm-256color
Can anyone explain this behavior of the red text in VIM on a tmux session and how to fix it?
Thanks.

