junegunn / limelight.vim

:flashlight: All the world's indeed a stage and we are merely players

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Defaults for eop?

Bretley opened this issue · comments

I think having a 'tab' and 'newline' would be good defaults for the eop, if there was a way to do it so you could still make your own regexes. Your regex in the example matches tab, another common one in latex is to have a newline in between two paragraphs with no indentation. Just a suggestion

Hi, I'm not sure if I follow you. FYI the defaults are as follows:

let bop = get(g:, 'limelight_bop', '^\s*$\n\zs')
let eop = get(g:, 'limelight_eop', '^\s*$')

Im a bit rusty on regex, the first one is newline tab, what's the second
one?

On Aug 23, 2016 12:42 PM, "Junegunn Choi" notifications@github.com wrote:

Hi, I'm not sure if I follow you. FYI the defaults are as follows:
https://github.com/junegunn/limelight.vim/blob/
106fb57/autoload/limelight.vim#L46-L47


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#34 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AICBCZJZXbeVIO1wB8c-qRpK5kC6JqZeks5qiyLdgaJpZM4JqHHY
.

^\s*$ matches empty line or line that only has whitespace characters.

OK ok, I just meant having named defaults for those, ie let g:something
="tab"

That would help scrubs like me out

On Aug 23, 2016 12:50 PM, "Junegunn Choi" notifications@github.com wrote:

^\s*$ matches empty line or line that only has whitespace characters.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
#34 (comment),
or mute the thread
https://github.com/notifications/unsubscribe-auth/AICBCeSW9uV2dlo0IzxfjZXu_Zj2aX52ks5qiyS7gaJpZM4JqHHY
.