如何在 Vim 中一次打开多个文件? [英] How can I open several files at once in Vim?

查看:34
本文介绍了如何在 Vim 中一次打开多个文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法从 Vim 中打开目录中的所有文件?所以一个 :command 实际上会说将 /some/path 下的所有文件打开到缓冲区中".

Is there a way to open all the files in a directory from within Vim? So a :command that would say in effect "Open all the files under /some/path into buffers".

理想情况下,递归地打开目录下的所有文件会很棒.

Ideally, it would be great to open all the files under a dir recursively.

推荐答案

您要查找的命令是 args:

The command you are looking for is args:

例如:

:args /path_to_dir/*

将打开目录中的所有文件

will open all files in the directory

这篇关于如何在 Vim 中一次打开多个文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆