[Python] How to fold long docstrings in Python source code in Vim?

Discussão em 'Python' iniciado por Stack, Agosto 14, 2025.

  1. Stack

    Stack Membro Participativo

    What is a method (or perhaps a plugin), that will automatically fold long docstrings in Python? I have docstrings in my code that span several pages, so it is troublesome to keep paging through them.

    The other tricky part is that there is embedded Python testing code in the docstrings, so that might make parsing them difficult. I only need to automatically fold the entire docstring, regardless of what is in it.

    Continue reading...

Compartilhe esta Página