From 11cb8e40307220e66f073eedcd779f75956d725f Mon Sep 17 00:00:00 2001 From: Johanna Ploog Date: Sat, 16 Jan 2010 02:20:49 +0100 Subject: Document how to override (vi) keys with CMD_NO_CMD_DEFAULT. no_vi_command_keys.txt doesn't handle targeting or movement on the level map. Should it? --- crawl-ref/docs/keybind.txt | 2 ++ crawl-ref/settings/init.txt | 4 ++++ crawl-ref/settings/no_vi_command_keys.txt | 2 +- 3 files changed, 7 insertions(+), 1 deletion(-) (limited to 'crawl-ref') diff --git a/crawl-ref/docs/keybind.txt b/crawl-ref/docs/keybind.txt index 11fbdeff74..0455822e4d 100644 --- a/crawl-ref/docs/keybind.txt +++ b/crawl-ref/docs/keybind.txt @@ -2,6 +2,8 @@ Here's a list of all commands, in the form they are parsed by the bindkey option, with their default key and a short explanation (where necessary). +CMD_NO_CMD_DEFAULT can be used to bind any key to the "Unknown command." + Movement -------- Moving one grid into a given direction: diff --git a/crawl-ref/settings/init.txt b/crawl-ref/settings/init.txt index aa3fca3f98..84473acd6e 100644 --- a/crawl-ref/settings/init.txt +++ b/crawl-ref/settings/init.txt @@ -409,4 +409,8 @@ note_monsters = orb of fire, ancient lich, Sigmund ##### 6-d Alternative keybinding files ########## # +# Alternative vi bindings for Dvorak users. # include = dvorak_command_keys.txt +# +# Override the vi movement keys with a non-command. +# include = no_vi_command_keys.txt diff --git a/crawl-ref/settings/no_vi_command_keys.txt b/crawl-ref/settings/no_vi_command_keys.txt index 2012b25f69..ffc1925487 100644 --- a/crawl-ref/settings/no_vi_command_keys.txt +++ b/crawl-ref/settings/no_vi_command_keys.txt @@ -1,4 +1,4 @@ -# Keybindings to override the vi keys. +# Keybindings to override the vi movement keys. # CMD_NO_CMD_DEFAULT results in "Unknown command." # See docs/keybind.txt for other commands. -- cgit v1.2.3-54-g00ecf