search

Home  >  Q&A  >  body text

linux - 为什么不同term下默认的vim配色不一样?

比如Ubuntu系统中,另term=xterm是如下样子

令term=linux是如下样子

这是在哪里哪个脚本控制的?

PHP中文网PHP中文网2795 days ago784

reply all(1)I'll reply

  • 伊谢尔伦

    伊谢尔伦2017-04-17 15:58:39

    xterm supports 256 colors, while linux term only supports 16 colors, so in

    case "$TERM" in
        xterm-color|*-256color) color_prompt=yes;;
    esac

    In this code, it is judged whether $TERM is xterm or whether it supports 256 colors to decide whether to enable color_promt

    reply
    0
  • Cancelreply