5f16ede7cae5c8e9f32d4a980333f0ee1b7abaf6
- Author
- Robby Russell <robby@planetargon.com>
- Committer
- Robby Russell <robby@planetargon.com>
- Date
Message
Merge pull request #1322 from jimhester/colemak
Colemak plugin ( http://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