# vim: Preserve system clipboard when pasting over visual selection \(\#52948\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 179af67c0fa13d2e3bb981a59c99151120295768

Requested commit: 179af67c0fa13d2e3bb981a59c99151120295768

Commit: 179af67c0fa13d2e3bb981a59c99151120295768

Tree: f65af01429c01717350000b27d779dfd12d916b3

Author: João Soares

Committer: GitHub

## Message

```
vim: Preserve system clipboard when pasting over visual selection (#52948)

Self-Review Checklist:

- [x] I've reviewed my own diff for quality, security, and reliability
- [ ] Unsafe blocks (if any) have justifying comments
- [x] The content is consistent with the UI/UX checklist
- [x] Tests cover the new/changed behavior
- [x] Performance impact has been considered and is acceptable

Closes #52352

Release Notes:

- Fixed system clipboard being overwritten when pasting over a visual
selection with Cmd-V/Ctrl-V in vim mode
```

## Parents

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

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