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

Vim Cursor shape stays underscore. Not able to change it #2821

Closed
ponegan opened this issue Jan 9, 2018 · 2 comments
Closed

Vim Cursor shape stays underscore. Not able to change it #2821

ponegan opened this issue Jan 9, 2018 · 2 comments
Labels

Comments

@ponegan
Copy link

ponegan commented Jan 9, 2018

  • Your Windows build number: (Type ver at a Windows Command Prompt)
    Microsoft Windows [Version 10.0.16299.125]

  • What you're doing and what's happening / What's wrong / what should be happening instead:
    I'm using xterm-256color.
    I had been tried to change the shape of my vim cursor. I tried lots of different configuration for cursor shape (to be block) but none of them works as I put them in my .vimrc.

For example I tried some of these:
http://vim.wikia.com/wiki/Configuring_the_cursor

In the terminal I was able to change the shape of cursor to block by selecting 'large' in property as @zadjii-msft suggested in #1253. But the same trick won't work for vim. Well.... it will work at the moment I set it to 'large'. But it will reset back to underscore every time I open another file.

As this:
image

Anyone got a good approach on this cursor configuration?

@parkovski
Copy link

parkovski commented Jan 10, 2018

I don't think this is possible right now - the console needs to understand a cursor escape, like ^[[n q with n from 0-6, which it doesn't. The only way I know to change it right now is with console APIs that are not available within WSL. Hopefully this functionality will get implemented soon.

Edit - there may be a hacky way to do this right now. You can write a small Windows C program that calls SetConsoleCursorInfo, and set up vim's cursor sizing commands to run that program. I think that would work, but no guarantees.

@bitcrazed
Copy link
Contributor

This issue was moved to microsoft/terminal#68

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

No branches or pull requests

4 participants