0

I'd like to change the view of my current cursor as this pic: enter image description here

So how to have _ in cursor and how to change color of cursor? Thanks in advanced.

  • Check this out -> https://stackoverflow.com/a/16153774/4838158 And of course, :h guicursor – saikat tapu Dec 4 '17 at 13:46
  • Thanks, follow your suggestions. h guicursor options change shape of cursor follow percent of char. So the expected cursor as pic should be block but how we can have _ in that block and even color it? – Tuyen Pham Dec 4 '17 at 14:11
  • :h highlight seems can't do the trick because I can't find any related Cursor color options that affect unknown defined _. – Tuyen Pham Dec 4 '17 at 14:23
0

For your cursor in insert mode and command-line insert mode use the following:

set guicursor=i-ci:hor10-Search
  • i-ci : insert and command-line insert
  • hor10: Horizontal bar, 10% of height
  • Search: Yellow, the background color from the "Search" highlight group.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.