neovim-e icon indicating copy to clipboard operation
neovim-e copied to clipboard

[idea] Solid cursor.

Open trusktr opened this issue 9 years ago • 7 comments

Can you add an option to change the block cursor from outlined to solid? A good reason to have a solid cursor is because in some terminals an outline cursor indicates the window isn't in focus.

trusktr avatar Jun 11 '15 23:06 trusktr

+1 came here looking for a config.cson option for this...

raghur avatar Jun 17 '15 05:06 raghur

Editing src\nvim.css seems to at least to get us partially there...

#nvas-cursor {
  position: absolute;
  box-sizing: border-box;
  border: 1px solid;
  background-color: rgba(244,244,244,0.3);
}

raghur avatar Jun 17 '15 06:06 raghur

@raghur Oh wow, I forgot it's just web tech. That was easy!

trusktr avatar Jun 17 '15 06:06 trusktr

Also, this fixes insert mode cursor

.insert-mode #nvas-cursor {
  border: 0;
  border-left: 2px solid;
  background-color: transparent;
}

raghur avatar Jun 17 '15 08:06 raghur

I like the transparent cursor:

#nvas-cursor {
  position: absolute;
  box-sizing: border-box;
  background: rgba(255,255,255,0.3);
}

:smile:

trusktr avatar Jun 18 '15 21:06 trusktr

Strictly speaking, we should probably inverse the fg/bg color under a solid cursor, yet currently we do not store the colors of each character. Semi-transparent cursor is a nice hack, I'm glad that it works for you.

coolwanglu avatar Jun 19 '15 02:06 coolwanglu

@coolwanglu Yeah, having the cursor color the inverse of the letter would be neat! Another neat hack would be to fill in the last empty space in the visual selection (you know how vim leaves the background of the character that the cursor is on empty when in VISUAL mode?)

trusktr avatar Jun 21 '15 16:06 trusktr