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 doesn't blink #1253

Closed
Erhie opened this issue Oct 22, 2016 · 12 comments
Closed

VIM - cursor doesn't blink #1253

Erhie opened this issue Oct 22, 2016 · 12 comments
Labels

Comments

@Erhie
Copy link

Erhie commented Oct 22, 2016

Working with VIM, the cursor does not blink and is hard to find

otherwise if VIM runs in Windows cmd.exe the cursor blinks

Why that difference?

Ubuntu 14.04.5 LTS on Windows Version 10.0.14393 Build 14393

@zadjii-msft
Copy link
Member

I'm gonna look into this, this doesn't look right.

@zadjii-msft
Copy link
Member

So I wrote the following script to make sure this works as it should. The only blinking sequences I'm seeing emitted by vim are \x1b[?12l and \x1b[?12;25h. The both work as intended, but it looks to me like vi also tries to turn off cursor blinking.

import sys
import time

def csi(seq):
    sys.stdout.write('\x1b[{}'.format(seq))

def main(argv):
    csi('?12l')
    print 'Blinking off'
    time.sleep(5)

    csi('?12h')
    print 'Blinking on'
    time.sleep(5)

    csi('?25;12l')
    print 'invisible'
    time.sleep(5)

    csi('?25;12h')
    print 'visible on'
    time.sleep(5)

if __name__ == '__main__':
    main(sys.argv)

@ghost
Copy link

ghost commented Jun 1, 2017

Did anyone get it to blink?

@davidmaxwaterman
Copy link

davidmaxwaterman commented Oct 5, 2017

I don't know about blinking specifically, but the cursor sure is hard to fine sometimes...for me, it just seemed to be a thick underscore that inverts the bottom part of the character it is on. It's extremely difficult to spot quickly. I guess blinking would help, but isn't it possible to invert the whole character?
I don't recall having this problem on any other platform I've used vi/vim on.

I tried the commands on this page, but none seem to work:

http://vim.wikia.com/wiki/Configuring_the_cursor

@zadjii-msft
Copy link
Member

zadjii-msft commented Oct 5, 2017

@davidmaxwaterman You can definitely pick to have a full block cursor if you'd like!
In the properties, select the "Large" cursor size. That will give you what you're looking for.

image
image

We don't currently support any VT sequences for changing the cursor size/shape yet unfortunately, but it is something that I'm working on getting done :)

@davidmaxwaterman
Copy link

Yeah, that's much better. Thanks for that tip! :)

@AndriSig
Copy link

Any news on this?

I would rather not have cursorline on just to be able to see my cursor

@ntacus
Copy link

ntacus commented Jan 5, 2018

Changing the cursor size in the bash window properties still doesn't help the cursor in vim. I set the cursor size to Large which makes it a block cursor at the bash prompt, but in vim it returns to the small hard to find cursor. Should the cursor size have applied to the vim cursor as well?

@therealkenc
Copy link
Collaborator

@ragvri
Copy link

ragvri commented Dec 21, 2019

Any update on this issue?

@jaredkrinke
Copy link

@therealkenc any chance you could point us to the migrated issue? I couldn't find it by searching for "vim cursor blink" in the Windows Console issue tracker.

Sorry to bug you about such an old issue, but I'd like to know if this is supposed to be fixed (because I'm still seeing the same "cursor in Vim doesn't blink" issue on 10.0.19042.1237).

@tothedistance
Copy link

tothedistance commented Jun 2, 2022

A temporary solution would be install neovim and alias it to vim. For me, neovim blink works fine in windows terminal after setting :set guicursor=n-v-c:block,o:hor50,i-ci:hor15,r-cr:hor30,sm:block,a:blinkwait700-blinkon400-blinkoff250 except of course, the cursor will not restore after quitting vim. But this works for me.

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

10 participants