junegunn / junegunn/vim-plug

Grouping plugins for same filetypes

Open
#740 5 comments 0 reactions 0 assignees View on GitHub
Dominant language
Vim Script
Stars
35.8k
Forks
1.9k
PR merge metrics
No merged PRs in 30d

Description

What is the best way to group plugins for same filetype?
I wanted to use this:
```
if index(['pm','perl','xs'], &filetype) > -1
Plug 'vim-perl/vim-perl'
Plug 'vim-scripts/perl-support.vim'
endif
```
But it does not work. I want to avoid use multiply keyword **for**:
```
Plug 'vim-perl/vim-perl', {'for',['perl','xs','pm']}
Plug 'vim-scripts/perl-support.vim', {'for',['perl','xs','pm']}
```
Of course xs and pm files have same filetype: perl. This is only example.

Best regards Piotr

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.