# vim: Handle paste in visual line mode when cursor is at newline \(\#30791\) · gitcafe/zed

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

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

Visibility: public

Requested revision: ebed567adbb0cde7f63a830ef295df5cb91d2577

Requested commit: ebed567adbb0cde7f63a830ef295df5cb91d2577

Commit: ebed567adbb0cde7f63a830ef295df5cb91d2577

Tree: 0e6d60f6a1bcb68c21d188e7e63af0b125267590

Author: Dino

Committer: GitHub

## Message

```
vim: Handle paste in visual line mode when cursor is at newline (#30791)

This Pull Request fixes the current paste behavior in vim mode, when in
visual mode, and the cursor is at a newline character. Currently this
joins the pasted contents with the line right below it, but in vim this
does not happen, so these changes make it so that Zed's vim mode behaves
the same as vim for this specific case.

Closes #29270 

Release Notes:

- Fixed pasting in vim's visual line mode when cursor is on a newline
character
```

## Parents

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

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