How to effectively work with multiple files in Vim

前端 未结 28 2825
甜味超标
甜味超标 2020-11-28 00:18

I\'ve started using Vim to develop Perl scripts and am starting to find it very powerful.

One thing I like is to be able to open multiple files at once with:

<
28条回答
  •  醉话见心
    2020-11-28 00:37

    Things like :e and :badd will only accept ONE argument, therefore the following will fail

    :e foo.txt bar.txt
    :e /foo/bar/*.txt
    :badd /foo/bar/*
    

    If you want to add multiple files from within vim, use arga[dd]

    :arga foo.txt bar.txt
    :arga /foo/bar/*.txt
    :argadd /foo/bar/*
    

提交回复
热议问题