`gj` behaves differently in Normal mode and VisualBlock mode.
Open
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
gj behaves differently in Normal mode and VisualBlock mode.
To Reproduce
Steps to reproduce the behavior:
- Copy the following text.
- Type
gjin Normal mode. - Type
gjin VisualBlock mode. - When in VisualBlock mode, the cursor will shift to the right.
aaaaaaaaaaaaaaaaaaaaaaaaaaaaaa
あaaaaaaaaaaaaaaaaaaaaaaaaaaaa
ああaaaaaaaaaaaaaaaaaaaaaaaaaa
あああaaaaaaaaaaaaaaaaaaaaaaaa
ああああaaaaaaaaaaaaaaaaaaaaaa
あああああaaaaaaaaaaaaaaaaaaaa
ああああああaaaaaaaaaaaaaaaaaa
あああああああaaaaaaaaaaaaaaaa
Expected behavior
The cursor will move to the bottom of the screen in both modes.
Screenshots

Environment (please complete the following information):
- Extension Version:
1.21.3 - OS Version:
Windows_NT x64 10.0.19043 - VS Code version:
1.57.1
Additional context
Add any other context about the problem here.
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
Reproduce the issue in VS Code using the provided text and compare gj in Normal mode with VisualBlock mode on the reported extension and VS Code versions. Done means the cursor moves to the bottom of the screen consistently in both modes.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100