`<C-t>` does not move the cursor after the first indent
Nobody has claimed this yet.
- Dominant language
- TypeScript
- Stars
- 15.2k
- Forks
- 1.5k
- Avg merge
- 3d 18h
- Merged PRs (30d)
- 6
Description
Describe the bug
<C-t> indents a line. But if you use it more than once (e.g. indenting deeply in some Python code), after the first indent the cursor stops moving while spaces are still inserted after the cursor.
It also seems to move the cursor back by one space.
To Reproduce
Steps to reproduce the behavior:
- Go to a new line.
- Press
<C-t>twice. - See how the cursor is indented one level while there's another level of indent worth of spaces preceding the cursor.
Expected behavior
The cursor to always stay ahead of the inserted spaces.
Screenshots
<C-t> once (notice the 3 spaces before the cursor and the one after):

<C-t> a second time (notice the cursor didn't move, appended 4 more spaces to the end):

Environment (please complete the following information):
- Extension (VsCodeVim) version: v1.21.10
- VSCode version: 1.62.0-insiders
- OS: Windows 11
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the issue in VSCodeVim with a new line and two presses of , using the reported VSCode and extension versions if available. Trace the indentation/keybinding entry point and inspect how the cursor position is updated after inserted spaces. Done means repeated presses keep the cursor ahead of all inserted indentation, with a regression test covering the behavior.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript, vscode
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100