From 2fe1244636d56eae08a14326b173ff03d54b3c00 Mon Sep 17 00:00:00 2001 From: johannst Date: Wed, 19 Oct 2016 19:22:00 +0200 Subject: added some keymaps for bash vi mode --- bashrc | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'bashrc') diff --git a/bashrc b/bashrc index cf7428c..cf2f2fb 100644 --- a/bashrc +++ b/bashrc @@ -6,10 +6,15 @@ if [ "$TERM" == "screen" ]; then export TERM=screen-256color; fi if [ "$TERM" == "xterm" ]; then export TERM=xterm-256color; fi -# enable vi mode (use 'bind -P' to see bindings) +# enable vi mode (use 'bind -p' to see bindings) set -o vi bind -m vi-insert '"jj":vi-movement-mode' bind -m vi-insert 'Control-l:clear-screen' +bind -m vi-command '"diw":"bdw"' +#bind -m vi-command 'Control-a:beginning-of-line' +#bind -m vi-command 'Control-e:end-of-line' +bind 'Control-a:beginning-of-line' +bind 'Control-e:end-of-line' # disable sticky mode stty -ixon -- cgit v1.2.3