Add <Space> as special map key name (#176).
authorDaniel Carl <danielcarl@gmx.de>
Sat, 14 Feb 2015 20:41:33 +0000 (21:41 +0100)
committerDaniel Carl <danielcarl@gmx.de>
Sat, 14 Feb 2015 20:56:10 +0000 (21:56 +0100)
commit87ddae9ebd8b1ff5ad0b0d3a1d1d674e31dc96d6
tree1faae4775fac06403fd0ddd45c4485dfc2ec32da
parent191726dc57d587333a29914ac3dee508c01380d9
Add <Space> as special map key name (#176).

Normally the literal space char ' ' can be used for mappings. In case this is
part of the lhs it can be given escaped by '\'. But this does not work on the
rhs, because there is no evaluation of escaping for space like in vim. On the
other hand the rhs starts with the first none whitespace char after the lhs.
So it wasn't possible to apply mapping to sequences that starts with one or
more spaces.
This patch adds the new special key name '<Space>' to be used in this cases.
doc/vimb.1
src/map.c
tests/test-map.c