Monday, October 30, 2023

Regular expression tokens to identify *screen* lines?

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.

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. :-)

-tim


(all kicked off by thinking about this thread

https://www.reddit.com/r/vim/comments/17jkv50/vim_for_a_non_coder/

where folks were referring to focus-writer-like functionality to
keep the focus around the cursor-line, so it was just a conceptual
plaything)





--
--
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/ZUBBPjtU6xwevqFy%40thechases.com.

No comments: