Go to last edited is line-dependant
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
To Reproduce
Steps to reproduce the behavior:
- Create a new file, like
Hello World
- Insert a new last line
Hello World
Last Edited
- Insert a new line at the top of the file
ggO - Try to go to the last edited location with
g; - Cursor is now at the wrong line
Hello Wo<CURSOR HERE>rld
Last Edited
Expected behavior
Hello World
Last Edited<CURSOR HERE>
Screenshots

Environment (please complete the following information):
- Extension Name: vim
- Extension Version: 0.16.9
- OS Version: Darwin x64 17.7.0
- VSCode version: 1.28.0
{
"activationTimes": {
"startup": true,
"codeLoadingTime": 830,
"activateCallTime": 5,
"activateResolvedTime": 324,
"activationEvent": "*"
}
}
Additional context
The new september vscode release included a new Jump to last edit Command that may fix this
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 tracing the g; command handling in the VSCodeVim extension and compare it with VS Code's Jump to last edit command mentioned in the issue. Reproduce the steps with an inserted line at the top of a file; done means g; places the cursor at the original last-edited location rather than the wrong line.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- typescript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 42/100