I am using Vim in a xterm. When I quit Vim, the screen contents are

restored back to the original contents. How do I disable this? The xterm has a capability called “alternate screen”. If this capability is present, vim switches to that alternate screen upon startup and back on exit, thus restoring the original screen contents. To disable this feature, add the following line to your .vimrc file:

    :set t_ti= t_te=

Comments (1)


Pepsh Pepshinsky

Let’s see you to :help viminfo-file-name (option -i) :set viminfofile=NONE


Speak Your Mind