Colemak plugin
a plugin for useing the colemak[1] keyboard layout and vi-mode in zsh, rotates
some keys around in vi command mode so that the physical hjkl keys are still
used for movement, all the rotated keys are either in colemak's location or
qwerty's location, so it is easy to pick up
[1] www.colemak.com
Diff
1diff --git a/plugins/colemak/colemak-less b/plugins/colemak/colemak-less
2new file mode 100644
3index 0000000000000000000000000000000000000000..e4ca4facd65707c1f2ada112fb8781664439e637
4--- /dev/null
5+++ b/plugins/colemak/colemak-less
6@@ -0,0 +1,6 @@
7+n forw-line
8+e back-line
9+k repeat-search
10+\ek repeat-search-all
11+K reverse-search
12+\eK reverse-search-all
13diff --git a/plugins/colemak/colemak.plugin.zsh b/plugins/colemak/colemak.plugin.zsh
14new file mode 100644
15index 0000000000000000000000000000000000000000..34d42c280423836a39582089b504d240718a3f35
16--- /dev/null
17+++ b/plugins/colemak/colemak.plugin.zsh
18@@ -0,0 +1,22 @@
19+# ctrl-j newline
20+bindkey '^n' accept-line
21+bindkey -a '^n' accept-line
22+
23+# another rotation to match qwerty
24+bindkey -a 'n' down-line-or-history
25+bindkey -a 'e' up-line-or-history
26+bindkey -a 'i' vi-forward-char
27+
28+# make qwerty
29+bindkey -a 'k' vi-repeat-search
30+bindkey -a 'K' vi-rev-repeat-search
31+bindkey -a 'u' vi-insert
32+bindkey -a 'U' vi-insert-bol
33+bindkey -a 'l' vi-undo-change
34+bindkey -a 'N' vi-join
35+
36+# spare
37+bindkey -a 'j' vi-forward-word-end
38+bindkey -a 'J' vi-forward-blank-word-end
39+
40+lesskey $ZSH_CUSTOM/plugins/colemak/colemak-less