Vim exit keep the displayed content

Source: Internet
Author: User
Tags clear screen

/*************************************************************************** * Vim exit Keep displayed content * Disclaimer : * This article is mainly a record of what determines the VI exit when clear screen or not clear screen, because in the BusyBox * VI is not clear screen, and in Ubuntu VI is clear screen. Vim exits the screen so that you can see the contents of the exit *, and sometimes this is very useful. * 2016-2-24 Shenzhen Nanshan Ping Shan village Zengjianfeng ******************************************************* *******************/I. Reference article: How ToSetThe bash display to don't 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 Second, the solution:1Description of the environment variable: term=xterm:inch  This  CaseWhen you exit vim it'll clear the terminal. term=VT100:inch  This  CaseWhen you exit Vim it won't clear the terminal. 2. Set environment variables: term=xterm; Export term

Vim exit keep the displayed content

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.