VSCodeVim / VSCodeVim/Vim

g; not working on paste

Open
#8,109 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

Pasting with < p > in normal mode, is not added to the changelist, therefore, the shortcut < g-; > to return the cursor to the original pasting position does not work.

Steps to reproduce the behavior:

  1. Use < y-w > to yank a word currently under the cursor.
  2. Use < p > to paste the word in a new location.
  3. Press < g-; > to return the cursor to the position where the pasting command was issued.
  4. Cursor does not move.
  5. Expected behavior:
  6. Using < g-; > after pasting should bring the cursor back to the position where the paste command was issued.

Environment:

Visual Studio version: 1.73.1
VsVim version: 1.24.3
Additional context:
This is the expected behavior when compared to Vim.

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 reproducing the normal-mode

paste followed by <g-;> in the reported Visual Studio and VsVim versions, then trace the normal-mode paste and changelist behavior. Done means the paste position is recorded and <g-;> returns the cursor there, matching Vim's behavior.

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
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.