I'm using putty to ssh to Ubuntu with
Inside vim, the home and end keys are not working properly. "
Home" key makes vim enter in "
Insert" mode and put a '
w' character. Similarly "
End" key makes vim enter in "
Insert" mode before putting a '
The keys work fine outside vim. Home and End key puts the cursor at the beginning of the line or end of the line.
Also, this does not happen when I log in with
TERM=linux set. Home and End keys inside vim function properly then.
$TERMon the host you are connecting to corresponds to the settings in your PuTTY connection profile.