Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

migrated from stackoverflow.com May 18 '10 at 17:15

This question came from our site for professional and enthusiast programmers.

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.

Here are some tips on how to remap the key in X-Windows using xmodmap, or in the console/terminal using loadkeys. You probably want to map keycode 104 ("KP_Enter") to the "Return" command.

share|improve this answer

Use lesskey.

~ $ 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 noaction.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .