Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
Tyriar opened this issue Jul 26, 2016 · 4 comments
Closed

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

Tyriar opened this issue Jul 26, 2016 · 4 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) VIM VIM issue

Comments

@Tyriar
Copy link
Member

Tyriar commented Jul 26, 2016

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
@Tyriar Tyriar added the bug Issue identified by VS Code Team member as probable bug label Jul 26, 2016
@kieferrm kieferrm added the VIM VIM issue label Jul 26, 2016
@rebornix
Copy link
Member

@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?

@rebornix
Copy link
Member

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

@sandy081
Copy link
Member

sandy081 commented Jul 27, 2016

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.

@sandy081
Copy link
Member

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

@Tyriar Tyriar added the *duplicate Issue identified as a duplicate of another issue(s) label Jul 27, 2016
@Tyriar Tyriar removed this from the July 2016 milestone Jul 27, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug *duplicate Issue identified as a duplicate of another issue(s) VIM VIM issue
Projects
None yet
Development

No branches or pull requests

4 participants