colemak.plugin.zsh 532 B

12345678910111213141516171819202122
  1. # ctrl-j newline
  2. bindkey '^n' accept-line
  3. bindkey -a '^n' accept-line
  4. # another rotation to match qwerty
  5. bindkey -a 'n' down-line-or-history
  6. bindkey -a 'e' up-line-or-history
  7. bindkey -a 'i' vi-forward-char
  8. # make qwerty
  9. bindkey -a 'k' vi-repeat-search
  10. bindkey -a 'K' vi-rev-repeat-search
  11. bindkey -a 'u' vi-insert
  12. bindkey -a 'U' vi-insert-bol
  13. bindkey -a 'l' vi-undo-change
  14. bindkey -a 'N' vi-join
  15. # spare
  16. bindkey -a 'j' vi-forward-word-end
  17. bindkey -a 'J' vi-forward-blank-word-end
  18. lesskey $ZSH_CUSTOM/plugins/colemak/colemak-less