On a fresh install of both Ubuntu 7.04 and 7.10, pressing Ctrl-[Arrow Key] does not jump words but instead writes a control code onto the screen such as ;5C or ;5D.
To fix this, add export INPUTRC=/etc/inputrc
to /etc/bash.bashrc
.
Make sure /etc/inputrc
has these lines in it:
# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving
"\e[1;5C": forward-word
"\e[1;5D": backward-word
"\e[5C": forward-word
"\e[5D": backward-word
"\e\e[C": forward-word
"\e\e[D": backward-word
Saturday, November 24, 2007
Jump words with Control-Arrow in the Ubuntu terminal
Posted by Boris Joffe at 11:48:00 AM
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment