Skip to content

vim vg$ only moved the selection, it does not select #9803

Closed

Description

@Tyriar

Steps to Reproduce:

  1. Open a file
  2. Go to the middle of a line with content
  3. Type "vg$", notice the cursor is only moved, no selection

Activity

  1. added
    bug
    on Jul 26, 2016
  2. rebornix commented on Jul 27, 2016

    @rebornix
    Contributor

    Sandeep Somavarapu (@sandy081) I can repro this issue. Previously when I tried this comamnd with inSelectionMode set as true, Code will help select the line or chars but now it didn't work. There is no code change in Vim side so can you help confirm is it a regression or maybe API signagure update?

  3. rebornix commented on Jul 27, 2016

    @rebornix
    Contributor

    We have similar selection issue with vg0 (wrappedLineStart) and vg^ (nonChar) as well.

  4. sandy081 commented on Jul 27, 2016

    @sandy081
    Member

    As mentioned in #9732, this is an implementation issue in Vim sample extension. In Vim, in normal or visual mode, we always adjust the end of the line position to the one before that. So during selection, Vim sample extension is adjusting just the position instead of the complete selection.

    During investigation, I also figured out that #9802 is a different issue than this.
    vg0, vg^, vg$ are excluding the last character.

  5. sandy081 commented on Jul 27, 2016

    @sandy081
    Member

    This issue was moved to microsoft/vscode-samples#8

  6. added
    *duplicate
    on Jul 27, 2016
  7. removed this from the July 2016 milestone on Jul 27, 2016
  8. locked and limited conversation to collaborators on Nov 18, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*duplicateVIMbug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions