使用 VIM 在新选项卡中打开多个文件 [英] Open several files in new tabs with VIM

查看:33
本文介绍了使用 VIM 在新选项卡中打开多个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用 VIM 在每个文件的新选项卡中使用通配符打开多个文件?

How can I open several files using wildcards in a new tab for each file with VIM?

类似于 如何在以下位置打开多个文件曾经在 Vim 中? 但在新标签页而不是缓冲区中.

Similar to How can I open several files at once in Vim? but in new tabs instead of buffers.

推荐答案

如果你在 Vim 中,这个命令将在自己的选项卡中打开当前目录中的每个 html 文件并恢复语法支持(被 :argdo 禁用):

If you are in Vim, this command will open each html file in the current directory in its own tab and restore syntax support (disabled by :argdo):

:args *.html | argdo tabe | tabdo syntax on

如果您在壳中,请寻找其他答案.

If you are in your shell, go for the other answers.

这篇关于使用 VIM 在新选项卡中打开多个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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