Vim打开以符号'+'开头的多个文件

时间:2013-06-29 07:55:49

标签: matlab vim tabs

我有一个名为+ Options的文件夹,其中包含一些matlab文件:

▾ +Options/                    
    AdaptativeFilterOpts.m     
    EvtOpts.m                  
    EvtRemoveNear.m            
    EvtStepOpts.m              
    FilterOpts.m               
    MergeOpts.m                
    MeterDataOpts.m

我想在vim上使用-p选项打开它们,例如vim -p +Options/*,但是我收到以下错误:

Error detected while processing command line:
E492: Not an editor command: Options/AdaptativeFilterOpts.m
E492: Not an editor command: Options/EvtOpts.m
E492: Not an editor command: Options/EvtRemoveNear.m
E492: Not an editor command: Options/EvtStepOpts.m
E492: Not an editor command: Options/FilterOpts.m
E492: Not an editor command: Options/MergeOpts.m
E492: Not an editor command: Options/MeterDataOpts.m

如何扩展文件以便vim可以正确打开+ Options文件夹中的文件?

1 个答案:

答案 0 :(得分:3)

指定更广泛的路径。

vim -p ./+Options/*