The continuation of https://groups.google.com/forum/#!topic/vim_dev/dQ-5znirV4Y
I created this pull-req in order to update the patch and test on CI.
Summary:
'cursorlineopt' changes the behavior of 'cursorline'.
'cursorlineopt' accepts one of the following string values:
line: Highlight the screen line of the cursor with CursorLine.number: Highlight only the line number of the cursor with CursorLineNr.both (default): line and number. This is the current behavior.https://github.com/vim/vim/pull/4693
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
can we add an option, that makes CursorLine highlight only the current screen line (in contrast to the complete physical line that might span several screen lines). This can be annoying. I have an old patch for that behaviour (that introduces the cursorscreenline option).
https://groups.google.com/d/msg/vim_dev/1Yc9Z-82Z80/GXrCoPSdi3IJ
https://github.com/chrisbra/vim-mq-patches/blob/master/cursorscreenline
There is the user request that want to highlight only the current line number but not line.
It can do by hi CursorLine clear but setting a highlight is somewhat complicated (e.g. when revert previous highlighting).
Looks ready to include. Christian: You could add the "screenline" option to 'cursorlineopt' and merge in your old patch. Hmm, only question is what to use for "both" then, for highlighting the line number and the screen line? Or would you never highlight the line number and one screen line?
Christian: You could add the "screenline" option to 'cursorlineopt' and merge in your old patch. Hmm, only question is what to use for "both" then, for highlighting the line number and the screen line? Or would you never highlight the line number and one screen line?
Looking at this currently. It is a bit more effort than initially thought, because the win_line has changed quite a bit in the last couple of years. Currently I am implementing the screenline option for the 'cursorlineopt'. Is there any reason besides backwards-compatibility to not have the cursorline always work on screen lines?