From 89096752f0c027ae273653990718ef0358aeb29c Mon Sep 17 00:00:00 2001 From: Hugues Hiegel Date: Tue, 3 Jul 2012 11:15:15 +0200 Subject: Misc stuff / Prompt / Vim --- user:hugues/KeyBindings.zsh | 4 ++-- user:hugues/Vim.zsh | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'user:hugues') diff --git a/user:hugues/KeyBindings.zsh b/user:hugues/KeyBindings.zsh index a79047f..5419e5b 100644 --- a/user:hugues/KeyBindings.zsh +++ b/user:hugues/KeyBindings.zsh @@ -56,7 +56,7 @@ bindkey '^F' forward-char bindkey '^G' send-break bindkey '^H' backward-delete-char bindkey '^I' expand-or-complete -bindkey '^J' accept-line +bindkey '^J' accept-line # '\n' is considered as ^J bindkey '^K' kill-line bindkey '^L' clear-screen bindkey '^M' accept-line @@ -237,7 +237,7 @@ do bindkey -M $keymap '^[q' push-input bindkey -M $keymap '^[Q' push-input - bindkey -M $keymap -s '^[R' '^[Q __clear\n' + bindkey -M $keymap -s '^[R' '^[Q up_up ; __redefine_prompt\n^[xreset-prompt\n' bindkey -M $keymap -s '^[B' '^[Q __clear $(tput lines)\n' done diff --git a/user:hugues/Vim.zsh b/user:hugues/Vim.zsh index f43978a..e452257 100644 --- a/user:hugues/Vim.zsh +++ b/user:hugues/Vim.zsh @@ -44,7 +44,7 @@ psvmodeidx='8' # If this is set to `yes', use `C-d' instead of `ESC' to switch from insert # mode to command mode. `ESC' may require a timeout to actually take effect. # Using `C-d' will work immediately. Therefore that is the default. -zle_use_ctrl_d='no' +zle_use_ctrl_d='yes' # If set to `yes', make viins mode behave more like `emacs' mode. Bindings # such as `^r' and `^s' will work. Backspace and `^w' will work more like @@ -90,7 +90,7 @@ function ft-psvx() { if [[ ${ft_zle_state[overwrite]} == yes ]]; then psvar[$psvmodeidx]='REP' else - psvar[$psvmodeidx]='INS' + psvar[$psvmodeidx]='' fi ;; esac -- cgit v1.2.3