/*************************************************************************** * 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