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

Limelight on per-line basis

sudo-nice opened this issue · comments

Thank you for a very helpful plugin. Could you, please, advice me a solution to get only the current line highlighted with limelight? My approaches are all around this config:

let g:limelight_bop = '^'
let g:limelight_eop = '$'

If the cursor moves not to the end of the next/previous line, it works well. Here the example where the cursor moved from the middle of line 1 to the middle of the line 2:
scr1

However if the cursor moves to the end of the next/previous line, the next line and the line after next get highlighted both:
scr2

Have I overlooked any simple solution here?

In case this helps others, the solution to the above is:

let g:limelight_bop = '^.*$'
let g:limelight_eop = '\n'
let g:limelight_paragraph_span = 0

@franckrasolo i'm still getting the problem with double line highlighting though