# HG changeset patch # User Oleksandr Gavenko # Date 1310817075 -10800 # Node ID e77decd4520acafbf13858281c350a04cbd263fb # Parent 09d247c43f3dc2cfea3eed1e6c89ab460ed6d47b Ctrl+Left/Right to move by whole words. diff -r 09d247c43f3d -r e77decd4520a .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