Skip to content

[Feature Request] Un/Folding comments #499

Open
@tkapias

Description

@tkapias

Apparently, there is no plugin that supports comments folding for major filetypes. Those that I found are deprecated, or really limited.
Most of the plugins dedicated to syntax and filetypes don't offer it either.

I currently use custom fold expressions for Unix-like comments, like the one found here:

set fdm=expr
set fde=getline(v:lnum)=~'^\\s#'?1:getline(prevnonblank(v:lnum))=~'^\\s#'?1:getline(nextnonblank(v:lnum))=~'^\\s*#'?1:0

Would nerdcommenter be a good place to add such a functionality?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions