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

[idea] Solid cursor. #35

Open
trusktr opened this issue Jun 11, 2015 · 7 comments
Open

[idea] Solid cursor. #35

trusktr opened this issue Jun 11, 2015 · 7 comments

Comments

@trusktr
Copy link
Contributor

trusktr commented Jun 11, 2015

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.

@raghur
Copy link

raghur commented Jun 17, 2015

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

@raghur
Copy link

raghur commented Jun 17, 2015

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);
}

@trusktr
Copy link
Contributor Author

trusktr commented Jun 17, 2015

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

@raghur
Copy link

raghur commented Jun 17, 2015

Also, this fixes insert mode cursor

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

@trusktr
Copy link
Contributor Author

trusktr commented Jun 18, 2015

I like the transparent cursor:

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

😄

@coolwanglu
Copy link
Owner

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.

@trusktr
Copy link
Contributor Author

trusktr commented Jun 21, 2015

@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?)

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

No branches or pull requests

3 participants