vim/emacs/等中的分割和窗口:我们可以有特定于缓冲区的分割吗?
我正在使用 Charles Campbell 的 MPage[0] 插件来打开多个页面,因此我为一个缓冲区打开了垂直分割。
我的问题是:我可以在不打开另一个缓冲区的情况下打开另一个显示,然后切换回带分割的显示,而不打开另一个 vim 实例吗?
使用 tmux 或类似工具很容易做到这一点,但我想在一个 vim 实例中完成此操作。
另外,我知道我们可以在 Emacs 中进行两列编辑,但是我们可以为一个打开的文件引入多个(即多于两列)分割(垂直)吗? (a) 以 MPage 的方式连续流过文件,
(b) 循环遍历具有不同分割的不同文件?
还有其他编辑器可以做到这一点吗?
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
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 tabstabdo <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.