Quantcast
Channel: Andrei Lisnic blog
Viewing all articles
Browse latest Browse all 10

Vim, tmux, solarized and mouse support

$
0
0

Solarized is a sixteen color palette (eight monotones, eight accent

colors) designed for use with terminal and gui applications. It has

several unique properties. I designed this colorscheme with both

precise CIELAB lightness relationships and a refined set of hues based

on fixed color wheel relationships. It has been tested extensively in

real world use on color calibrated displays (as well as

uncalibrated/intentionally miscalibrated displays) and in a variety of

lighting conditions. [solarized]

I spent a lot a of time trying them to play together nicely, and I stumbled several times across color or background problems, here is the final working result:

#.vimrc
se t_Co=256
colorscheme solarized
:set mouse=a
let g:solarized_termcolors=256

-

#.tmux.conf
setw -g mode-mouse on
set -g default-terminal "screen-256color"

Unfortunately that is not enough, you have to run the tmux command with TERM=screen-256color-bce for it to display colors correctly. I made an alias in my .zshrc for that, you can do the same in your .bashrc

alias tmux="TERM=screen-256color-bce tmux"

Result:


Viewing all articles
Browse latest Browse all 10

Trending Articles