I tried export TERM=linux and for some reason it caused a severe problem when editing files with vim. I did find another solution Pvabucket