vim/emacs/等中的分割和窗口:我们可以有特定于缓冲区的分割吗?

发布于 2024-08-28 05:48:20 字数 609 浏览 1 评论 0原文

我正在使用 Charles Campbell 的 MPage[0] 插件来打开多个页面,因此我为一个缓冲区打开了垂直分割。

我的问题是:我可以在不打开另一个缓冲区的情况下打开另一个显示,然后切换回带分割的显示,而不打开另一个 vim 实例吗?

使用 tmux 或类似工具很容易做到这一点,但我想在一个 vim 实例中完成此操作。

另外,我知道我们可以在 Emacs 中进行两列编辑,但是我们可以为一个打开的文件引入多个(即多于两列)分割(垂直)吗? (a) 以 MPage 的方式连续流过文件,
(b) 循环遍历具有不同分割的不同文件?

还有其他编辑器可以做到这一点吗?

参考文献:
[0] http://www.mail-archive.com/< span class="__cf_email__" data-cfemail="3f495652604a4c5a7f58505058535a584d504a4f4c115c5052">[电子邮件受保护]/msg04908.html

I'm using Charles Campbell's MPage[0] plugin to get multiple pages open, so I have vertical splits open for one buffer.

My question is: can I have another display without splits open for another buffer, and switch back to the display with splits, without opening another instance of vim?

It's easy to do so using tmux or the like, but I want to do this within one instance of vim.

Also, I know that we can have two-column editing in Emacs, but can we introduce multiple (i.e. more than two columns) splits (vertical) for one open file which both:
(a) flow through the file continuously à la MPage,
(b) cycle through different files that have different splittings?

Are there any other editors that can do this?

REFERENCES:
[0] http://www.mail-archive.com/[email protected]/msg04908.html

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

卖梦商人 2024-09-04 05:48:20

Vim 7 允许您拥有多个选项卡页面,并且每个选项卡可以分为多个窗口。 Vim 在顶部显示选项卡,以便您可以用鼠标选择它们。

我最常使用的命令是:

使用 -p 选项启动 vim 以在新选项卡中打开每个文件参数。

:tabe 在新标签页中编辑文件。如果文件名被遗漏,则编辑一个新的缓冲区。

:tabc 关闭当前标签页。

:tabo 关闭所有其他标签页,使其成为唯一的标签页。

:tabs 列出选项卡

tabdo 在每个选项卡页上执行命令。

gt 向前循环浏览选项卡页,gT 向后循环。

请参阅 :h tab-page 了解更多信息。

Vim 7 lets you have multiple tabbed pages, and each tab can be split into multiple windows. Vim shows the tabs along the top so you can select them with the mouse.

The commands I use most frequently are:

start vim with the -p option to open each file argument in a new tab.

:tabe <filename> edit a file in a new tab page. If the filename is left out then edit a new buffer.

:tabc closes the current tab page.

:tabo makes this the only tab page by closing all the others.

:tabs lists the tabs

tabdo <cmd> executes a command on every tab page.

gt cycle forward through the tab pages, gT cycles backwards.

See :h tab-page for more information.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文