On Mo, 30 Okt 2023, Tim Chase wrote:
> I was playing around with tokens like
>
> :help /\%l
>
> and was curious if there was a way to identify *screen* lines rather
> than *file* lines. So imagining something like "\%5H" or "\%3L"
> would match the fifth-from-top line or the third-from-bottom line
> of the screen.
I am pretty sure we do not have regex atoms for screen lines.
> The initial idea was some sort of focused-writing where the top/bottom
> lines were dark-gray, getting progressively brighter in white-ness
> moving toward the center of the screen where the cursor-line (done
> with underline) would be kept in the middle with a high 'scrolloff'
> value. Maybe using syntax highlighting or :match-style invocations.
>
> It was mostly an boondoggle idea, so please nobody spend vast amounts
> of time on this silliness, but if there something obvious I've
> missed for "fade out text around the cursor" sort of functionality.
>
> Thanks for any thoughts, pointers, ideas though. :-)
Perhaps with some reasonable nice looking highlighting group, you can
use :set cursorlineopt=screenline. Or perhaps one can script something
by throwing in marks to delimit the region and then match it using the
\%'m atom (or possibly you don't even need the marks you can just try to
get the virtcol for the region and then use the \%v atom instead).
Thanks,
Christian
--
Drop in any mailbox.
--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/ZUEHlcze%2Bns5svVf%40256bit.org.
No comments:
Post a Comment