# vim: Add support for \`\<count\>gt\` and \`\<count\>gT\` \(\#38570\) · gitcafe/zed

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

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

Visibility: public

Requested revision: d4fd59f0a299b021025b31d1872a4e7058858dbe

Requested commit: d4fd59f0a299b021025b31d1872a4e7058858dbe

Commit: d4fd59f0a299b021025b31d1872a4e7058858dbe

Tree: 57f52e0ddd4f9aebe1dd1c585bc29ca846347901

Author: Ran Benita

Committer: GitHub

## Message

```
vim: Add support for `<count>gt` and `<count>gT` (#38570)

Vim mode currently supports `gt` (go to next tab) and `gT` (go to
previous tab) but not with count. Implement the expected behavior as
defined by vim:

- `<count>gt` moves to tab `<count>`
- `<count>gT` moves to previous tab `<count>` times (with wraparound)

Release Notes:

- Improved vim `gt` and `gT` to support count, e.g. `5gt` - go to tab 5,
`8gT` - go to 8th previous tab with wraparound.
```

## Parents

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

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