Friday, April 6, 2012

tmux - 256 colorscheme in VIM on Ubuntu

So I've had the pleasure of playing with tmux. Not bad. I like the idea of having everything ready when I come to work and that session is available when I need it. If you're familiar with GNU Screen, it's the same thing only tmux claims they have better features.

I had some trouble with vim color sheme though. But after some insights from a colleague, I found this: http://superuser.com/questions/399296/256-color-support-for-vim-background-in-tmux and everything made sense.

I'm using Solarized color scheme. I love it.


My .vimrc has set t_Co=256 and my .tmux.conf has set -g default-terminal "screen-256color"  and it works.

I don't have alias tmux = tmux -2 and I don't set my TERM to screen-256color in my .bashrc. It should work about the same on other OS. Hope that helps somebody.


No comments:

Post a Comment