I am using the script from here, and it seems setting the g:custom_foldtext_max_width variable cannot get rid of the extra "--" symbols in the end of the folded lines.

Is there any way to make the folded line not go beyond 80 characters ?


1 Answer 1


You can

set fillchars=fold:\ 

See :h fillchars.

  • 1
    Thanks for the reply. It works for removing the ending dashes. But is it possible to also remove the extra background highlighting after 80 chars ?
    – cinvro
    Feb 23, 2016 at 7:52
  • 1
    No, I don't think that's possible. :\ Feb 23, 2016 at 9:59
  • Notice the space after \
    – Mosaaleb
    Jul 28, 2021 at 16:58

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.