Skip to content

Instantly share code, notes, and snippets.

@compnerd
Last active December 20, 2015 20:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save compnerd/6191191 to your computer and use it in GitHub Desktop.
Save compnerd/6191191 to your computer and use it in GitHub Desktop.
#!/usr/bin/zsh
# Copyright © 2013 Saleem Abdulrasool <compnerd@compnerd.org>
# vim: set et ft=sh sts=2 sw=2 ts=8 :
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