Strange behavior of vim color inside screen with 256 colors
Strange behavior of vim color inside screen with 256 colors I was trying to make the syntax highlighting (with 256 colors) of vim work inside screen , which is running inside gterm . vim screen gterm It works quite fine in the beginning. What I mean by "in the beginning" is, after I start screen , and enter vim , the colors look fine, and there are really 256 colors. screen vim But after a while (I don't know exactly how long) the colors automatically change back to an appearance as if there are only 8 (or 16?) colors. For example, after this has already occurred, if I enter the command hi Comment ctermfg=68 inside vim , the comments appear to be "pure" green; however, if I open another vim outside screen (in the same terminal), then with the same command the comments appear to be a "yellowish" green. vim vim The following is my .screenrc settings related to color: attrcolor b ".I" defbce "on" termcapinfo xterm 'Co#256:AB=E[48...