Closed chinleung closed 5 years ago
It's actually an intended behavior due to #44. I understood what is happening.
When running f
as text object such as dfx
, exact detailed sequence is as below
d
f
guicursor
shape for hiding cursorx
guicursor
to defaultThe problem is that clever-f cannot know what the previous cursor shape was because Neovim already changed the cursor shape to under bar. This does not happen on Vim because Vim does not change cursor shape on d
.
Is there a way for me to disable this? Or change it back to the guicursor of my source?
Please use following configuration.
let g:clever_f_hide_cursor_on_cmdline = 0
I think using guicursor
to hide cursor would not be a good way. Instead, changing Cursor
color to the same as Normal
might do the same thing. winhighlight
might help. I'll check it.
@rhysd I used the configuration you've provided and it's working for me. My cursor stays the same. :)
Thanks!
I have the following to change my cursor from a block into an underline:
Whenever I run
df
to delete a range, my cursor is changed back to a block.I have to source my config to have it as an underscore again.
This behaviour seems to happen only with Neovim and not Vim itself.