Skip to content

Instantly share code, notes, and snippets.

@jonlorusso
Created February 10, 2014 17:14
Show Gist options
  • Save jonlorusso/8920183 to your computer and use it in GitHub Desktop.
Save jonlorusso/8920183 to your computer and use it in GitHub Desktop.
zsh vim mode
function zle-line-init zle-keymap-select {
RPS1="${${KEYMAP/vicmd/-- NORMAL --}/(main|viins)/-- INSERT --}"
RPS2=$RPS1
zle reset-prompt
}
zle -N zle-line-init
zle -N zle-keymap-select
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment