Apparently on most distros of Linux vi is an alias of vim.
Create or edit a file named .vimrc in your home directory and add the following line:
set t_ti= t_te=
Now vi will behave the same on Linux as it does on other flavors of UNIX.
This has been tested on Red Hat 5.