# vim: Add \`:r\[ead\] \[name\]\` command \(\#45332\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8001877df2104f86ee236f9c813e2405346e716f

Requested commit: 8001877df2104f86ee236f9c813e2405346e716f

Commit: 8001877df2104f86ee236f9c813e2405346e716f

Tree: bdd3b5e2a15f608da4eb49e2cbaf1dedec6e5673

Author: AidanV

Committer: GitHub

## Message

```
vim: Add `:r[ead] [name]` command (#45332)

This adds the following Vim commands: 
- `:r[ead] [name]`
- `:{range}r[ead] [name]`

The most important parts of this feature are outlined
[here](https://vimhelp.org/insert.txt.html#%3Ar).

The only intentional difference between this and Vim is that Vim only
allows `:read` (no filename) for buffers with a file attached. I am
allowing it for all buffers because I think that could be useful.

Release Notes:

- vim: Added the [`:r[ead] [name]` Vim
command](https://vimhelp.org/insert.txt.html#:read)

---------

Co-authored-by: Ben Kunkle <ben@zed.dev>
```

## Parents

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

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