how to open a file in a list of files in vim?

后端 未结 10 1521
遇见更好的自我
遇见更好的自我 2020-12-05 02:22

I have a longish list of files opened in vim that looks like this:

/dir1/file1
/dir2/file2
/dir2/file3
.....

How can I open all of them one

10条回答
  •  慢半拍i
    慢半拍i (楼主)
    2020-12-05 02:45

    I often need to open a changing list of files that had been modified in my SVN checkout. This one liner works to open all modified files in vim tabs.

    svn st | grep ^M | awk "{print($2)}" | xargs vim -p
    

提交回复
热议问题