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

Add setting for overriding default "normal" cursor shape (eg. to blinking block etc) #27

Open
damnskippy opened this issue Jun 27, 2017 · 3 comments

Comments

@damnskippy
Copy link

damnskippy commented Jun 27, 2017

Minor suggestion: would be nice to have a knob for user specified "normal" cursor shape

I'm probably in the minority but I set my normal cursor shape to blinking block (rather than a solid block) so it's easier to spot in a soup of terminal characters -- '0' instead of '2'; using urxvt (TERM=screen) running tmux. At some point along the way I noticed the cursor stopped blinking and tracked down to terminus, which when going out of insert/restore modes, sets the cursor to normal shape which is set to solid block by default. Perhaps an option to specify the initial cursor mode would be nice to have.

Just a minor suggestion, and thanks for your plugin(s).

@damnskippy
Copy link
Author

Just to provide some more context, I was referring to this code here:

--- a/plugin/terminus.vim
+++ b/plugin/terminus.vim
@@ -48,7 +48,9 @@ if s:shape
     let s:start_replace="\<Esc>]50;CursorShape=" . s:replace_shape . "\x7"
     let s:end_insert="\<Esc>]50;CursorShape=" . s:normal_shape . "\x7"
   else
-    let s:cursor_shape_to_vte_shape={1: 6, 2: 4, 0: 2}
+    let s:cursor_shape_to_vte_shape={1: 6, 2: 4, 0: 0}

@wincent
Copy link
Owner

wincent commented Jun 28, 2017

Yeah, that sounds like a totally reasonable thing to make customizable. Feel free to submit a PR if you'd like to scratch that itch; otherwise I will get to it at some point.

@wincent wincent changed the title [suggestion] would be nice to have an setting for user specified "normal" shape Add setting for overriding default "normal" cursor shape (eg. to blinking block etc) Jun 28, 2017
@ghost
Copy link

ghost commented Mar 24, 2018

I would very much appreciate the same thing.
Have you already addressed this issue? If not, how far is the progress?
Thank you for the nice plugin!

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

No branches or pull requests

2 participants