VSCodeVim / VSCodeVim/Vim

Go to last edited is line-dependant

Open
#3,128 0 comments 0 reactions 0 assignees View on GitHub

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:

  1. Create a new file, like

Hello World
  1. Insert a new last line

Hello World
Last Edited
  1. Insert a new line at the top of the file ggO
  2. Try to go to the last edited location with g;
  3. Cursor is now at the wrong line

Hello Wo<CURSOR HERE>rld
Last Edited

Expected behavior


Hello World
Last Edited<CURSOR HERE>

Screenshots
vimg

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

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.