Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cursor width when indent using tabs #3856

Closed
idr4n opened this issue Jun 27, 2019 · 4 comments
Closed

Cursor width when indent using tabs #3856

idr4n opened this issue Jun 27, 2019 · 4 comments

Comments

@idr4n
Copy link

idr4n commented Jun 27, 2019

Describe the bug
Basically, when the file is using indentation by tabs, the cursor width in normal mode changes according to the tab size (e.g. 2 or 4 spaces). I know it is not a big issue but somehow I find it a bit annoying. Here is an example of how it looks:

Screen Shot 2019-06-27 at 11 04 50 PM

In the picture, there are two cursors, one with width equal to 2 spaces due to the tab indentation, and one with 1 space width (the one in between if and len).

If I was using tab indentation with 4 spaces, then the difference between the two cursors would be more dramatic as you can imagine.

Expected behavior

So basically, the cursor width should always be the same (one space width), regardless whether it is on a tab indentation or not. This is the case in other editors vim extensions (e.g. ideavim or neovintageous).

Thanks in advance!

@J-Fields
Copy link
Member

Disabling the extension and setting editor.cursorStyle to "block" has this behavior too. I believe it's intentional (and useful), so I'm not sure this should be changed.

@idr4n
Copy link
Author

idr4n commented Jun 29, 2019

Oh, really? I have used VSCode with the Vim extension since the beginning so I didn't know that this behavior was from VSCode itself. I can see why one would find it as useful, but once again, in other editors, this is not the case. I personally I find it not appealing at all nor useful in my case.

In any case, I'm closing this issue since it is not from the Vim extension.

Thanks!

@idr4n idr4n closed this as completed Jun 29, 2019
@xh3b4sd
Copy link

xh3b4sd commented May 26, 2020

I just moved to vsCode and find the existing behaviour quite irritating. I cannot find any configuration to keep the cursor block width constant. How is this supposed to be?

@J-Fields
Copy link
Member

@xh3b4sd This is just how VSCode renders a block cursor on a wide character. Honestly don't really desire why it wouldn't be desirable, but you can file an issue in the VSCode repo or switch to using a different cursor style (line for instance).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants