gpt4 book ai didi

Emacs - 多列一个缓冲区

转载 作者:行者123 更新时间:2023-12-03 04:18:20 25 4
gpt4 key购买 nike

我正在尝试编辑一些汇编代码,这些代码往往采用长而薄的列表格式。我希望能够使用我所拥有的一些水平空间,并一次在屏幕上看到更多代码。有没有一种方法可以让 Emacs(或者实际上是另一个编辑器)向我显示多个列都指向同一个缓冲区?

C-x 3 (emacs) 和 :vsplit (vim) 非常适合对代码进行多个单独的 View ,但我希望它从一栏流动到另一栏(就像报纸中的文本)。

最佳答案

参见follow-mode 。摘录:

Follow mode is a minor mode that makes two windows, both showing the same buffer, scroll as a single tall “virtual window.” To use Follow mode, go to a frame with just one window, split it into two side-by-side windows using C-x 3, and then type M-x follow-mode. From then on, you can edit the buffer in either of the two windows, or scroll either one; the other window follows it.In Follow mode, if you move point outside the portion visible in one window and into the portion visible in the other window, that selects the other window—again, treating the two as if they were parts of one large window.

关于Emacs - 多列一个缓冲区,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/970292/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com