summaryrefslogtreecommitdiff
path: root/user:hugues
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-20 16:54:14 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-06-20 16:54:14 +0200
commit86e4f31ca19697f8ed0fef34f47e0ae704b1e09e (patch)
treeb638600b613278acd77aedd4068aba41e96e96c2 /user:hugues
parentc43539e5c6df684d5328f2294472701c9e2d0246 (diff)
Vim-mode INS by default.
Diffstat (limited to 'user:hugues')
-rw-r--r--user:hugues/Vim.zsh12
1 files changed, 6 insertions, 6 deletions
diff --git a/user:hugues/Vim.zsh b/user:hugues/Vim.zsh
index c197656..26d8f39 100644
--- a/user:hugues/Vim.zsh
+++ b/user:hugues/Vim.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]='vicmd';;
*)
if [[ ${ft_zle_state[overwrite]} == yes ]]; then
- psvar[$psvmodeidx]='R'
+ psvar[$psvmodeidx]='REPL'
else
- psvar[$psvmodeidx]='i'
+ 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]='vicmd'
else
- psvar[$psvmodeidx]='i'
+ psvar[$psvmodeidx]=''
fi
}
# This makes sure the first prompt is drawn correctly.