g; not working on paste
Open
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:
- Use < y-w > to yank a word currently under the cursor.
- Use < p > to paste the word in a new location.
- Press < g-; > to return the cursor to the position where the pasting command was issued.
- Cursor does not move.
- Expected behavior:
- 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
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 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