Ctrl+Left/Right to move by whole words.
authorOleksandr Gavenko <gavenkoa@gmail.com>
Sat, 16 Jul 2011 14:51:15 +0300
changeset 142 e77decd4520a
parent 141 09d247c43f3d
child 143 e78ca0a7e608
Ctrl+Left/Right to move by whole words.
.inputrc
--- a/.inputrc	Sat Jul 16 14:47:06 2011 +0300
+++ b/.inputrc	Sat Jul 16 14:51:15 2011 +0300
@@ -61,6 +61,13 @@
 "\C-w": kill-region
 "\M-w": copy-region-as-kill
 
+# Ctrl+Left/Right to move by whole words.
+"\e[1;5C": forward-word
+"\e[1;5D": backward-word
+# Same with SHIFT pressed.
+"\e[1;6C": forward-word
+"\e[1;6D": backward-word
+
 # Local Variables:
 # mode: shell-script
 # fill-column: 78