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.
In
zsh(for example), theextendedgloboption 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 settingset 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, whilefindsupports recursive globbing with**, it doesn't recognize exclusion patterns like**/foo*~bar.