# vim: Fix tab title when using \`\!\!\` and disable rerun button for terminal tasks \(\#26122\) · gitcafe/zed

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

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

Visibility: public

Requested revision: e600e71c1c4dd212f759d803e5f8cfe146425538

Requested commit: e600e71c1c4dd212f759d803e5f8cfe146425538

Commit: e600e71c1c4dd212f759d803e5f8cfe146425538

Tree: ff051e6e1b31f7b8be50e36737ded35b3ae7722a

Author: Dino

Committer: GitHub

## Message

```
vim: Fix tab title when using `!!` and disable rerun button for terminal tasks (#26122)

These changes tackle two issues with running terminal commands via vim
mode:

- When using `!!` the tab's title was set to `!!` instead of the
previous command that was run and these changes fix that in order to
always display the previous command in the tab's title when re-running
the command with `!!`
- For a terminal command, pressing the rerun button would actually bring
up the task palette, so this has been updated in order to disable the
rerun button when the terminal tab was spawned via a vim command

Closes #25800 

Release Notes:

- Fixed the terminal tab title when using `!!` to rerun the last command
- Improved the terminal tab for when command is run via vim mode, in
order to disable the rerun button, seeing as Zed does not support it
```

## Parents

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

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