When I connect to a remote server via iterm2 and SSH and use vim on this server remapping to the Escape key doesn't work. Other key mappings in the
.vimrc work as expected but
inoremap jj <Esc> won‘t leave the insert mode but writes
jj inside the text no matter how fast I type.
I tried an SSH connection with macOS's Terminal.app with the same result. Is this related to the SSH? How can I solve the problem?
:set to? tm?
It seems that all normal and visual mode mappings work but insert mode mappings fail. I also tried
inoremap > <TAB>
:verbose set paste?
paste Last set from ~/.vimrc