有没有办法从vim一次打开多个文件? [英] Is there a way to open multiple files at once from vim?

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

问题描述

从命令行启动 vim 时,我可以执行例如 vim *.txt 一次打开目录中的所有文本文件.

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

出于某种原因,从 vim ( :e *.txt ) 内部尝试相同的操作会出现错误:E77: Too many file names.

For some reason, trying the same from inside vim ( :e *.txt ) gives an error: E77: Too many file names.

vim 拒绝同时打开多个的原因是什么?有什么办法可以改变吗?

Is there a reason why vim refuses to open multiple at once? Is there a way to change that?

推荐答案

这应该有效:

:next *.txt

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

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