Expect: Display selection highlight for meta-d and Mouse Selection the same as Double Click.
The weird thing disturbed me is the last character is not highlighting, but it will be copied when I do y or Ctrl-c.
Btw, doing vaw on a word without special character at the end of a line may select \n and some spaces of next line.
I think I fixed the mouse selection/double click on master,
Your second issue is tracked here at #1350 can you go thumbs up it there
Closing this for now unless I misunderstood something.
The main issue was when you double click a word, it is displayed in the wrong place even though pressing x or y or something it was in the right place?
Double clicking a word displayed in the right place and it interacted correctly. The main issue is the highlighting selection region of mouse selection. Just as the follows image:

I don't know whether the last character 'm' is selected (Actually it is selected, but the highlighting of the references in other places of this document are wrong).
And doing double click it display as follows:

I think the later display is better.
That is not how vim works though is the problem. What you are describing makes sense. As far as other references should be fully highlighted, is there an action that you run that needs this or is it just visual?
It is just visual problem. I agree with you that vim is innocent. But vscode is not vim. Just lisk Sublime, It works consistent with vintage. In Sublime, vmode selection is consistent with normal mouse selection. And we can do <meta-d> -> <dd> instead of doing <vaw> -> <dd> to save one operation (In multiple selection it saves more operations). But I think it may be my personal habit. 馃槄
@xconverge @chestnutchen Actually the last character isn't selected in visual mode.
I think it's a bug cause by vim plugin.

@xconverge @chestnutchen I prefer to not only solve the visual problem, but also make copy-paste shortcuts of Windows work in normal mode.
I tried to turn on/off vim.overrideCopy, but it doesn't work neither.
"vim.useCtrlKeys": falsefoobar
Esc to switch back to Normal modefoobarCtrl+cCtrl+vWhole word is pasted, i.e.:
foobar
foobar
The word without the last character is pasted, i.e.:
foobar
fooba
@qws1986 Actually it works fine like this in normal Vim editor because the cursor do not blink and there aren't same keywords highlighting. When you do yank or other copy commands it can work unambiguously. But in VSCode, it passes the value of the selection without the character pointed by the cursor to VSCode core . And when you do next command, it operates with this character as it is in the Vim editor. I think that is the main problem in this issue.
I think the biggest problem here is the difference between Vim and VScode selections. In VSCode Vim, if you are yanking with "y", the letter under the cursor is included. However, anything that relies on what vanilla VSCode considers a text selection will not actually include the letter under the cursor if the selection is made in visual mode in the same way as one does for yanking.
For what it's worth, this means that:
The user has to remember that any selections in normal/visual (block cursor) mode look different depending on whether you are "yanking" (includes the letter under the cursor) or "copying" with ctrl-c or the Windows menu options (does not include the letter under the cursor). I suspect the average user in a Windows environment would assume yanking and copying to be the same thing. Probably many Vim users actually consider them pretty much as synonyms.
Certain extensions might give unexpected results. A user might be used to making a selection for "yanking" in visual/normal mode by ending with the cursor directly on the last character of the selection. But for an extension that manipulates text selections, the user has to remember to make sure that for any normal/visual mode selection the cursor must be placed one character past the end of the intended selection material to get the expected output.
Obviously, neither of these scenarios is a huge deal, but the second one could introduce problems that are not immediately obvious in casual reading of the output text (dropped punctuation, newlines, etc.).
There is a flow that is broken, I believe it was working before.
When you copy and replace by clicking on words.
foobarfoor
Thanks for the write up @unnamedcrewman. I think that provides very clear motivation to fix our dumb selection bug once and for all.
it's still not fixed in v0.7.1.
Well, the selection issue is already fixed, but the copy-paste problem is still there.
As described by @lennylxx and @alfonsodev
but the copy-paste problem is still there.
This doesn't repro for me. Following @lennylxx, I see the selection highlight of the last character that everyone is mentioning, but when doing a ctrl+c or a y, it copies the entire "foobar" word. (on a mac w/ latest extension - 0.7.1)
But, I do agree that visually, the selection of the last character is a bit inconsistent.
But now try double clicking to select another full word, and use cmd+v to try to paste the copied word over it.
You'll see it doesn't replace the last character of the selected word.
Notes:
p works fine. Repro only happens when using system paste command as opposed to vim's Put commandI can confirm that I also see what @andycmaj has reported.
Copied from https://github.com/VSCodeVim/Vim/issues/1711 @sebastjaeger
Environment:
What happened:
There are multiple surprising effects when selecting e.g. a word in visual mode
y the entire word is copied and can be retrieved with p (as expected)* buffer in vim, mouse middle click in linux) What did you expect to happen:
Clearly show that the last character of the selection belongs to the selection. Make sure the last character is copied into the selection clipboard. Highlight other occurrences of the selection correctly.
cursor 'I' like insert-mode will better than block.
amVim's visual mode is better.
Closed through https://github.com/VSCodeVim/Vim/pull/1862
Most helpful comment
Copied from https://github.com/VSCodeVim/Vim/issues/1711 @sebastjaeger
Environment:
What happened:
There are multiple surprising effects when selecting e.g. a word in visual mode
ythe entire word is copied and can be retrieved withp(as expected)*buffer in vim, mouse middle click in linux)What did you expect to happen:
Clearly show that the last character of the selection belongs to the selection. Make sure the last character is copied into the selection clipboard. Highlight other occurrences of the selection correctly.