zoukankan      html  css  js  c++  java
  • 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
  • 相关阅读:
    Swagger2 添加HTTP head参数
    获取枚举类型描述
    JS设置cookie、读取cookie、删除cookie
    ES6中Promise的入门(结合例子)
    阮一峰的ES6---Promise对象
    model_util.py
    IfcSpatialElementType
    labelme coco
    python opencv KeyPoint
    IfcSpatialZoneType
  • 原文地址:https://www.cnblogs.com/zengjfgit/p/5212641.html
Copyright © 2011-2022 走看看