Seems the right way to make vim's backgroup work in tmux is just add "set term=screen-256color" to .vimrc