This is the solution
set term=xterm
Adding this line to yout .vimrc file or
:set term=xterm
once you are in vim.