From 86e4f31ca19697f8ed0fef34f47e0ae704b1e09e Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Wed, 20 Jun 2012 16:54:14 +0200 Subject: Vim-mode INS by default. --- user:hugues/Vim.zsh | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'user:hugues') 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. -- cgit v1.2.3