Skip to content

Support for Extended Globbing in Vim #15791

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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