0

I am open vim in tmux in development, There is problem that when i using j to move page down, the color schema will lose, I record my operation as a video and uploaded to youtube:

https://www.youtube.com/watch?v=ejNf2TPSc4E

normally the color schema should be following:

enter image description here

but when I trying to use j to move down, the spaces without contains words will lost and become white:

enter image description here

I am using stonewashed theme

Moon soon
  • 2,616
  • 2
  • 30
  • 51
  • The site is at https://github.com/altercation/solarized – Togtokh Khorchin Jul 04 '17 at 05:43
  • 1
    https://github.com/altercation/vim-colors-solarized/issues/149 or https://superuser.com/questions/399296/256-color-support-for-vim-background-in-tmux both handle similar issues – Doktor OSwaldo Jul 04 '17 at 05:48
  • @DoktorOSwaldo, thanks, `export TERM=screen-256color` resolved the issue, should I closed this answer? – Moon soon Jul 04 '17 at 05:53
  • @Wooden Just mark your answer as correct one below. Maybe you get marked as duplicated, because the first related question on StackOverflow (on the right side) is basically the same (https://stackoverflow.com/questions/6427650/vim-in-tmux-background-color-changes-when-paging?rq=1) but that is not that bad. – Doktor OSwaldo Jul 04 '17 at 06:10
  • @DoktorOSwaldo,that's ok, and thanks for your reply – Moon soon Jul 04 '17 at 06:14
  • you are welcome, glad I could help you! – Doktor OSwaldo Jul 04 '17 at 06:15

1 Answers1

0

export TERM=screen-256color resolved the issue

Moon soon
  • 2,616
  • 2
  • 30
  • 51
  • I believe that you could also start tmux with the `-2` flag. `"Force tmux to assume the terminal supports 256 colours."` – Lix Jul 04 '17 at 08:53