• vim 退出保留显示的内容


    /***************************************************************************
     *                        vim 退出保留显示的内容
     * 声明:
     *     本文主要是记录是什么决定了vi退出时清屏或者不清屏,因为在busybox中的
     * vi就是不清屏,而在ubuntu中的vi是清屏的。vim退出不清屏那么就可以看到退出
     * 时的内容,有时候这还是挺有用的。
     *
     *                                         2016-2-24 深圳 南山平山村 曾剑锋
     **************************************************************************/
    
    一、参考文章:
        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
    
    二、解决办法:
        .环境变量说明:
            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.
        .设置环境变量:
            TERM=xterm; export TERM
  • 相关阅读:
    python 0705
    python 0704
    python 0706
    python 0712
    python 0711
    python 0709
    python 0707
    python 0701
    python 0708
    (ACID)事务的特性
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/5212641.html
Copyright © 2020-2023  润新知