Open escherpf opened 10 years ago
This seems to be also the way Vim works. Simply reopen if you see other behavior.
I'm no Vim expert but this isn't how my (windows) Vim works. I just tried in Vim with something like <span>test</span>
. Using the vw
when the cursor is on the t
only selects test
. Whereas in Sublime Text 3 with Vintageous it selects test<
.
Vim actually has a configuration option for that. If you enter :set selection?
, what does Vim print? My Vim prints "selection=inclusive" and will select the next character of a word (also, the selection is always 1 char long, it can't be empty.
My shows "selection=exclusive" but I would suspect that's default behaviour because I didn't know that was even an option.
Doesn't it make more sense to be exclusive?
Windows supposedly uses "selection=exclusive" by default, maybe other platforms do as well. My Linux installs all seem to use "selection=inclusive".
Allowing the user to switch introduces lots of tiny subtleties though, mostly because the cursor is now after the selection instead of on the last selected character. Then again, exclusive selection is what modern editors tend to use, so it might indeed make sense to make that the default.
So is exclusive
selection mode going to be added? I found it annoying when doing vw
on a word followed by "
, that it highlights the "
as well
+1: Finding this behavior as well on Windows.
AFAICT, inclusive
seems to be the default on Windows and Linux.
In VIM, entering visual mode ('v') followed by 'w' should select the word under the cursor and the white space after the word. In Vintageous, 'vw' does this, but also selects the first character of the next word.