summaryrefslogtreecommitdiff
path: root/user:hugues
diff options
context:
space:
mode:
authorHugues Hiegel <hugues.hiegel@qosmos.com>2012-07-03 11:15:15 +0200
committerHugues Hiegel <hugues.hiegel@qosmos.com>2012-07-03 11:15:15 +0200
commit89096752f0c027ae273653990718ef0358aeb29c (patch)
tree2178d7755b66e83127448eebf61b2e48676c6dac /user:hugues
parentb39cad4e48a261b9b41c80592313b52044edfc87 (diff)
Misc stuff / Prompt / Vim
Diffstat (limited to 'user:hugues')
-rw-r--r--user:hugues/KeyBindings.zsh4
-rw-r--r--user:hugues/Vim.zsh4
2 files changed, 4 insertions, 4 deletions
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