I am using vim (8.0.705) in iTerm2 (build 3.1.5) in MacOSX.
When I accidentally hit cmd-R in the iTerm window (meant to reload a browser window), the terminal gets reset.
From this point the arrow keys in vim are not usable, other commands keep working. What is the reason and how can I re-enable the arrow keys?
Answer 1: :!clear
Answer 2: Hit Ctrl+A - Ctrl+D to detach screen from your terminal, then run screen -D -R to reattach. This should make your arrow keys work again.
Answer 3: If you're not in screen, but just in Vim, then you can Ctrl+Z and type fg for the same effect.