# vim: Prevent flickering during movement actions \(\#52270\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e18da9ef6d8019ac726e050d9b15cab931d9e738

Requested commit: e18da9ef6d8019ac726e050d9b15cab931d9e738

Commit: e18da9ef6d8019ac726e050d9b15cab931d9e738

Tree: bd361a17ec02cc763c9718e00c8297c32141de98

Author: Finn Eitreim

Committer: GitHub

## Message

```
vim: Prevent flickering during movement actions (#52270)

## Context

Closes #52202

Some actions we're unnecessarily delayed during execution by a
yield_now().await call, causing flickering while moving around.

Video Before:


https://github.com/user-attachments/assets/f9922915-8bc7-4e9e-8ce9-18a1e898b69e

Video After:


https://github.com/user-attachments/assets/a46a6338-3fef-4784-8fd7-ecec07a28cf6



## How to Review

when we call the yield in workspace.rs

## Self-Review Checklist

<!-- Check before requesting review: -->
- [x] I've reviewed my own diff for quality, security, and reliability
- [x] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the [UI/UX
checklist](https://github.com/zed-industries/zed/blob/main/CONTRIBUTING.md#uiux-checklist)
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Release Notes:

- vim: fixed screen flickering during motions.

Co-authored-by: Cameron Mcloughlin <cameron.studdstreet@gmail.com>
```

## Parents

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

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