Selecting text in visual mode always highlights one additional character
Author: dusanbrankovCreated Jan 15, 2024Updated Aug 15, 2026
Describe the bug
When I select some text in visual mode, e.g. with viw (not with mouse), it always highlights one extra character/column to the right.
To Reproduce
- In normal mode, go to the first character of a word
- Enter visual mode by pressing
v - Press
e
(The word is selected correctly, but the space after the word is also highlighted.)
Expected behavior
When selecting a word, I would expect something like the following:
But instead it highlights like this:
- Extension (VsCodeVim) version: 1.27.2
- VSCode version: 1.85.1
- OS: Linux Mint 21.2 x86_64 (DE: Cinnamon)
Source: VSCodeVim/Vim