VSCodeVim / Vim

:star: Vim for Visual Studio Code
http://aka.ms/vscodevim
MIT License
13.69k stars 1.3k forks source link

Non-monospaced fonts shake when selecting in Normal Mode #4601

Open weiying-chen opened 4 years ago

weiying-chen commented 4 years ago

Describe the bug Non-monospaced fonts shake left and right when selecting in Normal Mode.

To Reproduce Steps to reproduce the behavior:

  1. Set a non-monospaced font: "editor.fontFamily": "'sans'"
  2. Select some text in Normal Mode.

Expected behavior The text shouldn't shake.

Screenshots

before after

(It seems like the fat caret is messing with the text's letter spacing.)

Environment (please complete the following information):

Note: The text doesn't shake if you are selecting in Insert Mode.

J-Fields commented 4 years ago

Out of curiosity, why do you use a non-monospace font?

weiying-chen commented 4 years ago

@J-Fields Thanks for paying attention to the issue.

I use non-monospaced fonts when I'm writing instead of programming (e.g. writing an article, ebook, etc.)

I think this issue is somewhat relevant since VS Code added a wrapping strategy for non-monospaced fonts: "editor.wrappingStrategy": "advanced".