less manpage says you can use CtrlLeft and CtrlRight to move the cursor by one word when performing line editing (e.g. entering a search string):
^LEFTARROW [ ESC-b or ESC-LEFTARROW ] (That is, CONTROL and LEFTARROW simultaneously.) Move the cursor one word to the left.
When I try this, it instead enters the printed representation of the control sequence my terminal sent. CtrlLeft enters
ESC[1;5D and Ctrl-Right enters
My terminal is configured to send
^[[1;5C for CtrlLeft and CtrlRight, respectively, and I put this in my
~/.inputrc so Readline would perform word-wise jumps when I'm in the shell (Bash),
# Ctrl-Left "\033[1;5D": backward-word # Ctrl-Right "\033[1;5C": forward-word
less is expecting some different control sequence? I'm a little hesitant to change the escape sequences my terminal is sending just to satisfy
less, for fear it would trip up Vim or Readline, but I'm willing to give it a shot.