Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

always move to the end of the line when scrolling through history in …

…vi-mode
  • Loading branch information...
commit 18fe2c1eafea873418a25d455b32fb592c5b32ce 1 parent ee51732
@marshall authored
Showing with 7 additions and 1 deletion.
  1. +7 −1 zsh/vi-mode.zsh
View
8 zsh/vi-mode.zsh
@@ -3,12 +3,18 @@ function zle-keymap-select {
}
function zle-line-init {
- zle end-of-line
+ zle vi-end-of-line
zle reset-prompt
}
+function vi-up-line-or-history {
+ zle .vi-up-line-or-history
+ zle vi-end-of-line
+}
+
zle -N zle-line-init
zle -N zle-keymap-select
+zle -N vi-up-line-or-history
bindkey -v
Please sign in to comment.
Something went wrong with that request. Please try again.