Home » Questions » Computers [ Ask a new question ]

Putty SSH: CTRL+Cursor keys don't work skip to previous/next word

Putty SSH: CTRL+Cursor keys don't work skip to previous/next word

When I am connected to my local Ubuntu dev server with putty (from my Windows 7 box) via SSH, the following key combinations don't work to move the cursor forward and backward on word boundaries:

Asked by: Guest | Views: 226
Total answers/comments: 1
Guest [Entry]

"Add these two lines to your ~/.inputrc file on the destination machine:

""\eOD"": backward-word
""\eOC"": forward-word

To make sure that they are the correct sequences, at a Bash prompt, type Ctrl-V Ctrl-LeftArrow and Ctrl-V Ctrl-RightArrow, you should see:

^[OD^[OC

When you start a new session, the keys will be available or you can press Ctrl-xCtrl-r to re-read the ~/.inputrc file for the current session."