summaryrefslogtreecommitdiff
path: root/user:hugues
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-09-26 16:39:28 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-09-26 16:39:28 +0200
commit84f5d397fb061594448229bf6f5d0ffe567aaf09 (patch)
tree5d5572c6acc810fc55e5f5e7a9ae3732389a88af /user:hugues
parent77f7ae5a9098c4a21470d903ceda7003dfc25c26 (diff)
Revert "TypeMatrix : cmd mode by default"
This reverts commit 5dfc2be3afc8528852b2bfc6911e251d2859f340.
Diffstat (limited to 'user:hugues')
-rw-r--r--user:hugues/KeyBindings.zsh10
1 files changed, 5 insertions, 5 deletions
diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh
index 464b219..d236bfb 100644
--- a/user:hugues/KeyBindings.zsh
+++ b/user:hugues/KeyBindings.zsh
@@ -35,7 +35,7 @@ zle -N replace-string-again
### CONFIGURATION ##########################################################
# Use either `ins' or `cmd' as the default input mode.
-zle_default_mode='cmd'
+zle_default_mode='ins'
# This defines in which index of `$psvar[]' the information is tracked.
# The default is `1'. Set this to whatever fits you best.
@@ -85,12 +85,12 @@ function ft-psvx() {
fi
else
case ${KEYMAP} in
- vicmd) psvar[$psvmodeidx]='';;
+ vicmd) psvar[$psvmodeidx]='ESC';;
*)
if [[ ${ft_zle_state[overwrite]} == yes ]]; then
psvar[$psvmodeidx]='REP'
else
- psvar[$psvmodeidx]='INS'
+ psvar[$psvmodeidx]=''
fi
;;
esac
@@ -102,9 +102,9 @@ function ft-psvx() {
# newly drawn prompt has the correct mode display.
function ft-psvx-default() {
if [[ ${zle_default_mode} == 'cmd' ]]; then
- psvar[$psvmodeidx]=''
+ psvar[$psvmodeidx]='ESC'
else
- psvar[$psvmodeidx]='INS'
+ psvar[$psvmodeidx]=''
fi
}
# This makes sure the first prompt is drawn correctly.