diff options
author | Aaron LI <aaronly.me@gmail.com> | 2016-05-29 22:19:16 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@gmail.com> | 2016-05-29 22:19:16 +0800 |
commit | fa695734493d4068b3c67a8f1895a1a2a322ed61 (patch) | |
tree | 440f7cd6296aa60adbb99bd483d8144c6364b942 /_zsh | |
parent | dd7f2004af233b70c3362ba6f7fd740c6c303cd3 (diff) | |
download | dotfiles-fa695734493d4068b3c67a8f1895a1a2a322ed61.tar.bz2 |
zsh: avoid switching to vi-mode reset bindkey settings
Diffstat (limited to '_zsh')
-rw-r--r-- | _zsh/50-vi-mode.zsh | 4 | ||||
-rw-r--r-- | _zsh/60-bindkeys.zsh (renamed from _zsh/50-bindkeys.zsh) | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/_zsh/50-vi-mode.zsh b/_zsh/50-vi-mode.zsh index d786102..4fe2d9e 100644 --- a/_zsh/50-vi-mode.zsh +++ b/_zsh/50-vi-mode.zsh @@ -1,5 +1,9 @@ # # zsh/vi-mode.zsh +# see zshzle(1) +# +# NOTE: +# This will *reset* previous bindkey settings! # # Credits: # https://github.com/robbyrussell/oh-my-zsh/blob/master/plugins/vi-mode/vi-mode.plugin.zsh diff --git a/_zsh/50-bindkeys.zsh b/_zsh/60-bindkeys.zsh index c53d3bf..80ed079 100644 --- a/_zsh/50-bindkeys.zsh +++ b/_zsh/60-bindkeys.zsh @@ -1,9 +1,13 @@ # # zsh/bindkeys.zsh +# see zshzle(1) # # To see the key combo you want to use just do: -# cat > /dev/null -# And press it +# $ cat > /dev/null +# then press it. +# +# NOTE: +# Switching mode (e.g., `bindkey -v`) will *reset* the following settings! # bindkey "^K" kill-whole-line # ctrl-k |