Is there a way to open multiple files at once from vim?

后端 未结 3 1366
陌清茗
陌清茗 2021-02-01 02:59

When launching vim from the command line, I can do for example vim *.txt to open all text files in a directory at once.

For some reason, trying the same fro

3条回答
  •  后悔当初
    2021-02-01 03:20

    It's done in two operations.

    Open all *.js files in as many vertical splits:

    :argadd *.js
    :argdo vs
    

    in horizontal splits:

    :argdo sp
    

    in tabs: 

    :argdo tabe
    

提交回复
热议问题