Open several files in new tabs with VIM

后端 未结 5 1270
面向向阳花
面向向阳花 2021-02-05 04:27

How can I open several files using wildcards in a new tab for each file with VIM?

Similar to How can I open several files at once in Vim? but in new tabs instead of buff

5条回答
  •  长发绾君心
    2021-02-05 05:30

    To open files in new tabs without replacing the arguments or tabs that are already open:

    :argadd *.c | tab all
    

    Also, to search for files in subdirectories:

    :argadd code/**/*.c | tab all
    

提交回复
热议问题