From 1a16267b53dbeb6928ca57f59274a91011cf8792 Mon Sep 17 00:00:00 2001 From: pvincent Date: Wed, 13 Nov 2019 16:17:11 +0400 Subject: [PATCH] forward/backward word on CTRL+ARROW left/right --- inputrc | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/inputrc b/inputrc index e0d6699..4f6288c 100644 --- a/inputrc +++ b/inputrc @@ -1,6 +1,10 @@ -## arrow up +## arrow up, down for history search "\e[A":history-search-backward -## arrow down "\e[B":history-search-forward + +# mappings for Ctrl-left-arrow and Ctrl-right-arrow for word moving +"\e[1;5C": forward-word +"\e[1;5D": backward-word + ## completion case-insentivive set completion-ignore-case on