# vim: Fix \`auto_indent_on_paste\` not being respected \(\#25447\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 4b3a2a33a8fb16861c025ae6f6432ff9d7b60c47

Requested commit: 4b3a2a33a8fb16861c025ae6f6432ff9d7b60c47

Commit: 4b3a2a33a8fb16861c025ae6f6432ff9d7b60c47

Tree: 3c5e12ad48120910e9239972bbe18fb6088592ba

Author: smit

Committer: GitHub

## Message

```
vim: Fix `auto_indent_on_paste` not being respected (#25447)

Closes #12236

This PR fixes an issue where the `auto_indent_on_paste` setting was not
being applied for pasting in Vim mode. It was correctly used for normal
paste behavior.

Also includes tests.  


Release Notes:

- Fixed yank + paste indenting incorrectly when `auto_indent_on_paste`
is set to `false` in certain languages.
```

## Parents

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

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