microsoft / microsoft/vscode-extension-samples

vim vg0, vg^ and vg$ should include the character at the end of the line in the selection

Open
#3 3 comments 0 reactions 1 assignee View on GitHub

@sandy081 is already working on this.

Since Jul 27, 2016.

bug editor VIM
Dominant language
TypeScript
Stars
10.2k
Forks
3.9k
PR merge metrics
No merged PRs in 30d

Description

From @Tyriar on July 26, 2016 17:26

  • VSCode Version: Code - Insiders 1.4.0-insider (fc167f86c1aee27951b7d4b4db51229f62d0a0ad, 2016-07-26T05:12:44.554Z)
  • OS Version: Linux x64 4.4.0-28-generic, Ubuntu 16.04
    #9699

Not sure if this is an extension, sample extension or API issue?

Steps to Reproduce:

  1. Open a file
  2. Go to a line with content
  3. end
  4. Type vg0, notice the character at the end is not included in the selection (unlike when running vim)
    image

And

  1. Go to beginning 0
  2. Type vg$, notice that character at the end is not included

And

  1. Go to beginning 0
  2. Type vg_, notice that non white space character at the end is included, BUT, cursor position is on next character

Copied from original issue: Microsoft/vscode#9802

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.