summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjohannst <stoelp@eit.uni-kl.de>2016-10-19 19:22:00 +0200
committerjohannst <stoelp@eit.uni-kl.de>2016-10-19 19:22:00 +0200
commit2fe1244636d56eae08a14326b173ff03d54b3c00 (patch)
tree1d108ebbb53650bcb8f6cbe8c6759ce052739e28
parent6fd0246b68f25812417536d5ba20e2d9df27cb67 (diff)
downloaddotfiles-2fe1244636d56eae08a14326b173ff03d54b3c00.tar.gz
dotfiles-2fe1244636d56eae08a14326b173ff03d54b3c00.zip
added some keymaps for bash vi mode
-rw-r--r--bashrc7
1 files changed, 6 insertions, 1 deletions
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