aboutsummaryrefslogtreecommitdiff
path: root/config.def.h
diff options
context:
space:
mode:
authorMarc André Tanner <mat@brain-dump.org>2016-04-14 21:36:19 +0200
committerMarc André Tanner <mat@brain-dump.org>2016-04-14 21:36:19 +0200
commitbd1d849b2033b04a372542c59d458d4f8279c937 (patch)
tree4485bb3b20436d76ad59fd5b9ea9d75f792aa17c /config.def.h
parentd7c917ea63e0374fc03622d4f21df8ac4c574fae (diff)
downloadvis-bd1d849b2033b04a372542c59d458d4f8279c937.tar.gz
vis-bd1d849b2033b04a372542c59d458d4f8279c937.tar.xz
vis: allow mapping of <Space>
One should generally use <Space> in mappings: :map! normal <Space> h except for insert/replace mode where a literal space has to be used: :map! insert " " foo
Diffstat (limited to 'config.def.h')
-rw-r--r--config.def.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.def.h b/config.def.h
index 2ca1a82..f01d556 100644
--- a/config.def.h
+++ b/config.def.h
@@ -51,7 +51,8 @@ static const KeyBinding bindings_motions[] = {
{ ",", ACTION(TOTILL_REVERSE) },
{ "+", ALIAS("j^") },
{ "-", ALIAS("k^") },
- { " ", ALIAS("l") },
+ { " ", ALIAS("<Space>") },
+ { "<Space>", ALIAS("l") },
{ "<Backspace>", ALIAS("h") },
{ "B", ACTION(CURSOR_LONGWORD_START_PREV) },
{ "b", ACTION(CURSOR_WORD_START_PREV) },