c******n 发帖数: 4965 | 1 syntax highlighting 都变成高亮和underline 的了。
screen
然后在本机上vim 就有颜色
从screen 里ssh 到另外一个机器,vim 就没有颜色
不从screen, 直接ssh 到那机器上, vim 正常 |
j*a 发帖数: 14423 | 2 进了screen后改环境变量TERM
【在 c******n 的大作中提到】 : syntax highlighting 都变成高亮和underline 的了。 : screen : 然后在本机上vim 就有颜色 : 从screen 里ssh 到另外一个机器,vim 就没有颜色 : 不从screen, 直接ssh 到那机器上, vim 正常
|
c******n 发帖数: 4965 | 3
【在 j*a 的大作中提到】 : 进了screen后改环境变量TERM
|
F*******i 发帖数: 190 | 4 term xterm-color
in your .screenrc
【在 c******n 的大作中提到】 : syntax highlighting 都变成高亮和underline 的了。 : screen : 然后在本机上vim 就有颜色 : 从screen 里ssh 到另外一个机器,vim 就没有颜色 : 不从screen, 直接ssh 到那机器上, vim 正常
|
c******n 发帖数: 4965 | 5 Thanks , this works
【在 F*******i 的大作中提到】 : term xterm-color : in your .screenrc
|
l****h 发帖数: 272 | 6 另外screen缺省是不支持256色的,同样需要在.screenrc里添加一下内容:
# terminfo and termcap for nice 256 color terminal
# allow bold colors - necessary for some reason
attrcolor b ".I"
# tell screen how to set colors. AB = background, AF=foreground
termcapinfo xterm 'Co#256:AB=\E[48;5;%dm:AF=\E[38;5;%dm'
# erase background with current bg color
defbce "on"
term xterm-256color
【在 c******n 的大作中提到】 : syntax highlighting 都变成高亮和underline 的了。 : screen : 然后在本机上vim 就有颜色 : 从screen 里ssh 到另外一个机器,vim 就没有颜色 : 不从screen, 直接ssh 到那机器上, vim 正常
|