From b8841f682afce4b8db8069d71b708b1ad2984fbe Mon Sep 17 00:00:00 2001 From: Malik BEN KIRANE Date: Mon, 13 Aug 2018 19:27:23 +0200 Subject: [PATCH] bind C-l to clear command in vi-insert keymap --- sensible.bash | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sensible.bash b/sensible.bash index a306610..efab83d 100644 --- a/sensible.bash +++ b/sensible.bash @@ -80,6 +80,10 @@ bind '"\e[B": history-search-forward' bind '"\e[C": forward-char' bind '"\e[D": backward-char' +# Bind C-l to clear command (for vi mode users) +# by default it is binded to vi-command only +bind -m vi-insert -x '"\C-l":clear' + ## BETTER DIRECTORY NAVIGATION ## # Prepend cd to directory names automatically @@ -103,4 +107,3 @@ shopt -s cdable_vars # export projects="$HOME/projects" # export documents="$HOME/Documents" # export dropbox="$HOME/Dropbox" -