# vim: Fix relative line motion · gitcafe/zed

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

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

Visibility: public

Requested revision: 20aa2a4c54df6268c2c18b36af4c36e599583138

Requested commit: 20aa2a4c54df6268c2c18b36af4c36e599583138

Commit: 20aa2a4c54df6268c2c18b36af4c36e599583138

Tree: d97cd4beaac29f27ddc3075f4855d200f9a19c45

Author: Conrad Irwin

Committer: Conrad Irwin

## Message

```
vim: Fix relative line motion

Before this change up and down were in display co-ordinates, after this
change they are in fold coordinates (which matches the vim behaviour).

To make this work without causing usabliity problems, a bunch of extra
keyboard shortcuts now work:

- vim: `z {o,c}` to open,close a fold
- vim: `z f` to fold current visual selection
- vim: `g {j,k,up,down}` to move up/down a display line
- vim: `g {0,^,$,home,end}` to get to start/end of a display line

Fixes: zed-industries/community#1562

```

## Parents

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

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