#8827·Vim

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

  1. In normal mode, go to the first character of a word
  2. Enter visual mode by pressing v
  3. 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: visualmode1

But instead it highlights like this: visualmode2


  • Extension (VsCodeVim) version: 1.27.2
  • VSCode version: 1.85.1
  • OS: Linux Mint 21.2 x86_64 (DE: Cinnamon)