Skip to content

Commit

Permalink
always move to the end of the line when scrolling through history in …
Browse files Browse the repository at this point in the history
…vi-mode
  • Loading branch information
marshall committed Feb 14, 2013
1 parent ee51732 commit 18fe2c1
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion zsh/vi-mode.zsh
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 18fe2c1

Please sign in to comment.