# vim: implement \<space\> in normal mode \(\#7011\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/7b8bd97652dd22b8b6c6dc32b58953528ab6d3a8)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 7b8bd97652dd22b8b6c6dc32b58953528ab6d3a8

Requested commit: 7b8bd97652dd22b8b6c6dc32b58953528ab6d3a8

Commit: 7b8bd97652dd22b8b6c6dc32b58953528ab6d3a8

Tree: fb5cee3dbde377e7377d384f057e3eadb22460fa

Author: Thorsten Ball

Committer: GitHub

## Message

```
vim: implement <space> in normal mode (#7011)

This fixes #6815 by implementing `<space>` in normal mode in Vim. Turns
out that `<space>` behaves like a reverse `<backspace>` (which we
already had): it goes to the right and, if at end of line, to the next
line.

That means I had to touch `movement::right`, which is used in a few
places, but it's documentation said that it would go to the next line,
which it did *not*. So I changed the behaviour.

But I would love another pair of eyes on this, because I don't want to
break non-Vim behaviour.

Release Notes:

- Added support for `<space>` in Vim normal mode: `<space>` goes to the
right and to next line if at end of line.
([#6815](https://github.com/zed-industries/zed/issues/6815)).
```

## Parents

- [4af542567c952b1255dafd6e61bd618b5ae73103](https://git.cafe/gitcafe/zed/commit/4af542567c952b1255dafd6e61bd618b5ae73103?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/7b8bd97652dd22b8b6c6dc32b58953528ab6d3a8?format=markdown)
