Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Why would one go through so much trouble when you have tmux?

But I really want Vim to color properly in it, can anyone give me the right solution?



Have you tried setting 'termguicolors' in vimrc?

https://vim-jp.org/vimdoc-en/options.html#'termguicolors'


I had it, but it was not working.

BUT I got it to work! Apparently I had my tmux setup wrong

Changing to this fixed the colors on tmux. Hopefully this help someone in the future.

    # tmux colors
    set -g default-terminal "xterm-256color"
    set -ag terminal-overrides ",xterm-256color:Tc"

Got it from here https://github.com/vim/vim/issues/3608#issuecomment-84907404...




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: