Either quitting vim or ctrl-z vim, should display the content and not display the previous commands in xterm.
I am pretty sure it's a vimrc setting and not Xresources setting but can't remember...
Thanks.
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityEither quitting vim or ctrl-z vim, should display the content and not display the previous commands in xterm.
I am pretty sure it's a vimrc setting and not Xresources setting but can't remember...
Thanks.
in vim
typing :help norestorescreen
says to put the following in your .vimrc:
For non-Windows Vim: You can set or reset the 't_ti' and 't_te'
options in your .vimrc. To disable restoring:
set t_ti= t_te=
This worked for me using Ubuntu 12.04 with Vim 7.3.429.
if &term =~ "xterm"
" restore screen after quitting
set t_ti=ESC7ESC[rESC[?47h t_te=ESC[?47lESC8
if has("terminfo")
let &t_Sf="\ESC[3%p1%dm"
let &t_Sb="\ESC[4%p1%dm"
else
let &t_Sf="\ESC[3%dm"
let &t_Sb="\ESC[4%dm"
endif
endif