VSCodeVim / VSCodeVim/Vim

Deleting a line containing a mark should delete the mark too.

Open
#6,399 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

kind/bug
Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

When using deteting command like dd or d {line movement}, it should also delete the mark in that line according to Vim's manual.

The following content may have nothing to do with the bug.
I feel weird about the behavior of deleting line of Vim. I have tested the mark deleting behavior several times, I find that if you use d w command until deleting the whole line, the mark will not be deleted since the command is not a "line" command. It is difficult for me to distinguish what is "line" change. I appreciate it if you could tell me something about it.

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

Reproduce the behavior with dd, d followed by a line movement, and repeated dw commands while a mark exists on the affected line. Read Vim's mark-deletion behavior in its manual and compare it with the extension's current behavior; done means linewise deletion removes the mark as specified without changing the documented behavior of non-linewise deletion.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
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.