vim退出后终端保留 退出前的内容

一、参考文章:
    How to set the bash display to not show the vim text after exit?
        http://unix.stackexchange.com/questions/60499/how-to-set-the-bash-display-to-not-show-the-vim-text-after-exit

二、解决办法:
    1.环境变量说明:
        TERM=xterm: in this case when you exit vim it will clear the terminal.
        TERM=vt100: in this case when you exit vim it will not clear the terminal.
    2.设置环境变量:
        TERM=xterm; export TERM

还没有评论,快来抢沙发!

发表评论

  • 😉
  • 😐
  • 😡
  • 😈
  • 🙂
  • 😯
  • 🙁
  • 🙄
  • 😛
  • 😳
  • 😮
  • emoji-mrgree
  • 😆
  • 💡
  • 😀
  • 👿
  • 😥
  • 😎
  • ➡
  • 😕
  • ❓
  • ❗
  • 68 queries in 0.417 seconds