summaryrefslogtreecommitdiffstats
path: root/zshrc
diff options
context:
space:
mode:
authorJesse Luehrs <doy@tozt.net>2013-10-27 00:48:19 -0400
committerJesse Luehrs <doy@tozt.net>2013-10-27 04:31:59 -0400
commit4fa9c9cde5d800cd405f25aa69311a829ebe3332 (patch)
tree063cae769fb6348caddc76c354bc7fdb3c91a0f4 /zshrc
parentcda7f3998d9d9392b06e09e359a365808df2af36 (diff)
downloadconf-4fa9c9cde5d800cd405f25aa69311a829ebe3332.tar.gz
conf-4fa9c9cde5d800cd405f25aa69311a829ebe3332.zip
copy over some of my new vim keybindings to zsh
Diffstat (limited to 'zshrc')
-rw-r--r--zshrc9
1 files changed, 9 insertions, 0 deletions
diff --git a/zshrc b/zshrc
index 140c625..f49d55f 100644
--- a/zshrc
+++ b/zshrc
@@ -60,7 +60,16 @@ export HISTSIZE=1000000000
export SAVEHIST=1000000000
export SPROMPT="Correct $fg[red]%R$reset_color to $fg[green]%r$reset_color? [ynae] "
export KEYTIMEOUT=5
+# keybindings {{{
bindkey -M vicmd ')' vi-digit-or-beginning-of-line
+bindkey -M vicmd 'e' vi-change
+bindkey -M vicmd 'E' vi-change-eol
+bindkey -M vicmd ',' execute-named-command
+bindkey -M vicmd '!' vi-insert
+bindkey -M vicmd '_' vi-first-non-blank
+bindkey -M vicmd '|' send-break
+bindkey -M vicmd '\' send-break
+# }}}
# plugins {{{
# cdhist {{{
source ~/.sh/cdhist.sh