If you want to disable the screen switching, and you don't want to
change your termcap, you can add these lines to your .vimrc: >
:set t_ti= t_te=
The default of my terminal tool XShell is screen switching, after editing from vim.
If you want to enable it, pls refer to vim help screen:)