Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Defaults for eop? #34

Open
Bretley opened this issue Aug 22, 2016 · 4 comments
Open

Defaults for eop? #34

Bretley opened this issue Aug 22, 2016 · 4 comments

Comments

@Bretley
Copy link

Bretley commented Aug 22, 2016

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

@junegunn
Copy link
Owner

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*$')

@Bretley
Copy link
Author

Bretley commented Aug 23, 2016

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
.

@junegunn
Copy link
Owner

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

@Bretley
Copy link
Author

Bretley commented Aug 23, 2016

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
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants