My question is similar to: https://unix.stackexchange.com/questions/60499/how-to-set-the-bash-display-to-not-show-the-vim-text-after-exit but the accepted answer doesn't work in my case.
My question is exactly opposite to Keeping view of edited file after exiting vim
I do not want to keep the file content on console after the file is closed through vi.
=> echo $TERM
prints xterm
I also did (not required though):
TERM=xterm;export TERM
=> $HOME/.vimrc doesn't exist, so i created one and set t_ti=""
and later also tried set t_te=""
but didn't work
=> When i open a file, if i !echo t_te or t_ti or t_ks it all prints nothing
=> I'm on Linux 3.10.0 with Vi Improved 7.4, using Tectia