Created
February 10, 2014 17:14
-
-
Save jonlorusso/8920183 to your computer and use it in GitHub Desktop.
zsh vim mode
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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