diff options
-rw-r--r-- | user:hugues/Vim.zsh | 12 |
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. |