summaryrefslogtreecommitdiffstats
path: root/crawl-ref/settings
diff options
context:
space:
mode:
authorpubby <pubby8@gmail.com>2013-07-06 07:32:15 -0500
committerAdam Borowski <kilobyte@angband.pl>2014-01-27 14:10:53 +0100
commit7384a709820f8237e591871c445abe6b01223af3 (patch)
tree5f67a80924f4110fc2e6a2b0a7d38a444e031a58 /crawl-ref/settings
parent03b699e6a8ee132cf7914c53bcbf5da80050cf27 (diff)
downloadcrawl-ref-7384a709820f8237e591871c445abe6b01223af3.tar.gz
crawl-ref-7384a709820f8237e591871c445abe6b01223af3.zip
Add vi keyboard bindings for colemak users.
Only two key pairs needed swaping: (e) with (u) (i) with (y)
Diffstat (limited to 'crawl-ref/settings')
-rw-r--r--crawl-ref/settings/colemak_command_keys.txt79
-rw-r--r--crawl-ref/settings/init.txt3
2 files changed, 82 insertions, 0 deletions
diff --git a/crawl-ref/settings/colemak_command_keys.txt b/crawl-ref/settings/colemak_command_keys.txt
new file mode 100644
index 0000000000..64e919e26c
--- /dev/null
+++ b/crawl-ref/settings/colemak_command_keys.txt
@@ -0,0 +1,79 @@
+# keymap with working vi keys for colemak keyboards
+
+bindkey = [h] CMD_MOVE_LEFT
+bindkey = [n] CMD_MOVE_DOWN
+bindkey = [e] CMD_MOVE_UP
+bindkey = [i] CMD_MOVE_RIGHT
+bindkey = [j] CMD_MOVE_UP_LEFT
+bindkey = [l] CMD_MOVE_UP_RIGHT
+bindkey = [b] CMD_MOVE_DOWN_LEFT
+bindkey = [k] CMD_MOVE_DOWN_RIGHT
+
+bindkey = [H] CMD_RUN_LEFT
+bindkey = [N] CMD_RUN_DOWN
+bindkey = [E] CMD_RUN_UP
+bindkey = [I] CMD_RUN_RIGHT
+bindkey = [J] CMD_RUN_UP_LEFT
+bindkey = [L] CMD_RUN_UP_RIGHT
+bindkey = [B] CMD_RUN_DOWN_LEFT
+bindkey = [K] CMD_RUN_DOWN_RIGHT
+
+bindkey = [h] CMD_TARGET_LEFT
+bindkey = [n] CMD_TARGET_DOWN
+bindkey = [e] CMD_TARGET_UP
+bindkey = [i] CMD_TARGET_RIGHT
+bindkey = [j] CMD_TARGET_UP_LEFT
+bindkey = [l] CMD_TARGET_UP_RIGHT
+bindkey = [b] CMD_TARGET_DOWN_LEFT
+bindkey = [k] CMD_TARGET_DOWN_RIGHT
+
+bindkey = [H] CMD_TARGET_DIR_LEFT
+bindkey = [N] CMD_TARGET_DIR_DOWN
+bindkey = [E] CMD_TARGET_DIR_UP
+bindkey = [I] CMD_TARGET_DIR_RIGHT
+bindkey = [J] CMD_TARGET_DIR_UP_LEFT
+bindkey = [L] CMD_TARGET_DIR_UP_RIGHT
+bindkey = [B] CMD_TARGET_DIR_DOWN_LEFT
+bindkey = [K] CMD_TARGET_DIR_DOWN_RIGHT
+
+bindkey = [h] CMD_MAP_MOVE_LEFT
+bindkey = [n] CMD_MAP_MOVE_DOWN
+bindkey = [e] CMD_MAP_MOVE_UP
+bindkey = [i] CMD_MAP_MOVE_RIGHT
+bindkey = [j] CMD_MAP_MOVE_UP_LEFT
+bindkey = [l] CMD_MAP_MOVE_UP_RIGHT
+bindkey = [b] CMD_MAP_MOVE_DOWN_LEFT
+bindkey = [k] CMD_MAP_MOVE_DOWN_RIGHT
+
+bindkey = [H] CMD_MAP_JUMP_LEFT
+bindkey = [N] CMD_MAP_JUMP_DOWN
+bindkey = [E] CMD_MAP_JUMP_UP
+bindkey = [I] CMD_MAP_JUMP_RIGHT
+bindkey = [J] CMD_MAP_JUMP_UP_LEFT
+bindkey = [L] CMD_MAP_JUMP_UP_RIGHT
+bindkey = [B] CMD_MAP_JUMP_DOWN_LEFT
+bindkey = [K] CMD_MAP_JUMP_DOWN_RIGHT
+
+bindkey = [^H] CMD_OPEN_DOOR_LEFT
+bindkey = [^N] CMD_OPEN_DOOR_DOWN
+bindkey = [^E] CMD_OPEN_DOOR_UP
+bindkey = [^I] CMD_OPEN_DOOR_RIGHT
+bindkey = [^J] CMD_OPEN_DOOR_UP_LEFT
+bindkey = [^L] CMD_OPEN_DOOR_UP_RIGHT
+bindkey = [^B] CMD_OPEN_DOOR_DOWN_LEFT
+bindkey = [^K] CMD_OPEN_DOOR_DOWN_RIGHT
+
+# replace (e) with (u)
+bindkey = [u] CMD_EAT
+bindkey = [u] CMD_TARGET_EXCLUDE
+bindkey = [u] CMD_MAP_EXCLUDE_AREA
+bindkey = [U] CMD_EXPERIENCE_CHECK
+bindkey = [U] CMD_MAP_FIND_EXCLUDED
+bindkey = [^U] CMD_TOGGLE_TRAVEL_SPEED
+bindkey = [^U] CMD_MAP_CLEAR_EXCLUDES
+
+# replace (i) with (y)
+bindkey = [y] CMD_DISPLAY_INVENTORY
+bindkey = [Y] CMD_DISPLAY_SPELLS
+bindkey = [Y] CMD_MAP_FIND_STASH
+bindkey = [^Y] CMD_AUTOFIGHT
diff --git a/crawl-ref/settings/init.txt b/crawl-ref/settings/init.txt
index 80488d0056..c7d3751c50 100644
--- a/crawl-ref/settings/init.txt
+++ b/crawl-ref/settings/init.txt
@@ -447,5 +447,8 @@
# Alternative vi bindings for Dvorak users.
# include = dvorak_command_keys.txt
#
+# Alternative vi bindings for Colemak users.
+# include = colemak_command_keys.txt
+#
# Override the vi movement keys with a non-command.
# include = no_vi_command_keys.txt