So, this says a lot about my current job.. But I found it useful and maybe you will to. If you find you can’t use your home/end/insert/delete/pgup/pgdn keys in vim in docker when on a remote server with putty, then have I got the fix for you!

Just add this to your ~/.vimrc:

set t_kh=^[[1~

set t_kI=

set t_kD=

set t_@7=

set t_kP=

set t_kN=

To get the right control character, just type ctrl-v and hit the key.