When I use the unix command 'less' I am constantly frustrated that using the Enter key on the numeric keypad doesn't work but instead types 'ESCOM'.
Is there a way to fix that?
This is because the number pad's Enter key sends a different command then the keyboard Enter key. You could globally re-map the key to send the normal Return/Enter command, but understand that it will effect how the key works in all the other programs too.
~ $ vi .lesskey #command \OM forw-line ~ $ lesskey
If this character doesn't match the one in your keyboard try using the escaped octal value.
You can also use another action like
invalid (beeps) or