VSCodeVim / VSCodeVim/Vim

Hide "real" caret during visual mode

Open
#9,007 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
TypeScript
Stars
15.2k
Forks
1.5k
Avg merge
3d 18h
Merged PRs (30d)
6

Description

Is your feature request related to a problem? Please describe.
It looks like during normal mode, the plugin simulates a fake(?) caret, but the real caret stays visible:

image

With editor.cursorSmoothCaretAnimation set to on, this becomes really apparent and distracting:

Kooha-2024-04-26-23-09-36.webm

Describe the solution you'd like
I believe that this could be solved by simply temporarily making the "real" caret invisible, by setting it to a transparent color. The color can then be reset afterwards.

Describe alternatives you've considered
I tried to figure out a way to hack it from the user's end, but I couldn't figure it out.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files or tests are named. Start by locating the caret rendering and visual-mode entry points, then inspect how VS Code cursor color configuration is changed and restored. Done means the real caret is hidden during visual mode, restored afterward, and no longer distracts when smooth caret animation is enabled.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
desktop, tooling
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.