Skip to content

Support for Extended Globbing in Vim #15791

@girishji

Description

@girishji

In zsh (for example), the extendedglob option allows for advanced file pattern matching, such as selectively excluding files or directories using patterns like **/foo*~bar (where ~ or ^ is used for exclusion). I attempted to enable this in Vim by setting set shell=/bin/zsh\ -o\ extendedglob, but it had no effect.

It seems Vim relies on the shell to resolve glob patterns, so I expected zsh's extended globbing to work. However, this doesn't seem to be the case. For instance, while find supports recursive globbing with **, it doesn't recognize exclusion patterns like **/foo*~bar.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions