diff options
author | johannst <stoelp@eit.uni-kl.de> | 2016-10-19 19:22:00 +0200 |
---|---|---|
committer | johannst <stoelp@eit.uni-kl.de> | 2016-10-19 19:22:00 +0200 |
commit | 2fe1244636d56eae08a14326b173ff03d54b3c00 (patch) | |
tree | 1d108ebbb53650bcb8f6cbe8c6759ce052739e28 /bashrc | |
parent | 6fd0246b68f25812417536d5ba20e2d9df27cb67 (diff) | |
download | dotfiles-2fe1244636d56eae08a14326b173ff03d54b3c00.tar.gz dotfiles-2fe1244636d56eae08a14326b173ff03d54b3c00.zip |
added some keymaps for bash vi mode
Diffstat (limited to 'bashrc')
-rw-r--r-- | bashrc | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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 |