VSCodeVim / VSCodeVim/Vim

`v` in the end of line should not select the second line.

Open
#6,436 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

When in the first line of 2 or more empty lines, typing v will select the start of the second line, which is not a correct behavior. It will make some motion behave incorrectly such as is.
The key sequence is v is
Peek 2021-04-06 20-38
Peek 2021-04-06 20-39
Here is what vim does
Peek 2021-04-06 20-40
Peek 2021-04-06 20-41
I am not sure which causes this, maybe the implementation of is has problem.

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 v is sequence with the cursor at the end of the first line followed by two or more empty lines, then compare the selection with Vim's behavior shown in the issue. Trace the visual-mode selection and is motion handling to identify the relevant entry point; done means the second line is no longer selected and the motion behaves like Vim.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
devtools
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.