-
Notifications
You must be signed in to change notification settings - Fork 28.3k
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 vg0, vg^ and vg$ should include the character at the end of the line in the selection #9802
Comments
This is a different issue than #9803. All selection commands are excluding the last character. |
Again these are Vim specific details which has to be implemented by Vim extensions. Because, Vim extension uses Block cursor type for Normal (and Visual mode). Relation between Block type cursor and Line type cursor is that
For eg: All movement and selection operations are based on this fact. So, when selecting backwards it is expected to ignore the current character. One more fact is that in Vim world, there is no special position for end of line, instead last character is represented as end. So when end or Moving this to Vim sample extension |
This issue was moved to microsoft/vscode-extension-samples#3 |
Test: Evaluate API gaps for better VIM support #9699
Not sure if this is an extension, sample extension or API issue?
Steps to Reproduce:
vg0
, notice the character at the end is not included in the selection (unlike when runningvim
)And
0
vg$
, notice that character at the end is not includedAnd
0
vg_
, notice that non white space character at the end is included, BUT, cursor position is on next characterThe text was updated successfully, but these errors were encountered: