Notepad++/other editors: How to view same file in multiple columns with auto scrolling?

4

2

Is there any editor that allows me to have two columns, where the second column picks up after the last line of the first column? I don't mean cloning like in Notepad++ where I have two open copies of the document, but a view where the same document displays in the second column from the point after the first column is full.

curious_georgie

Posted 2014-11-28T20:52:39.587

Reputation: 43

Answers

2

In Emacs, there's a package to do just that called follow-mode. You can read about it with C-h r i follow-mode RET.

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.

To turn off Follow mode, type M-x follow-mode a second time.

Stefan

Posted 2014-11-28T20:52:39.587

Reputation: 1 052

follow-mode is great! And it lets you have as many columns as you want. – Nifle – 2014-11-28T21:31:04.480

How would I add more than 2 columns? I used C-x 3 M-x follow-mode. – curious_georgie – 2014-11-29T01:44:52.713

2

For Vim, there's the MPage plugin by the well-known plugin author DrChip. You can specify the number of columns to the :MPage command.

Ingo Karkat

Posted 2014-11-28T20:52:39.587

Reputation: 19 513

This is exactly what I was looking for! – A.Wan – 2016-12-27T17:55:00.877

0

In Vim, you might be able to :set scrollbind on two windows on the same buffer after setting them up to an appropriate initial configuration. But I've found they don't always stay in sync very well as you edit and move around.

Ben

Posted 2014-11-28T20:52:39.587

Reputation: 2 050