jcaudle
jcaudle

Reputation: 57

How can I split a single buffer into two panes that track the scroll of each other in vim?

I have one buffer that I'd like to split into two vertical panes with the bottom of the right pane starting where the left pane ends. I understand how to split the panes, but is there any way to link them in vim without a plugin? If it's not possible, a plugin to do this would be fine.

Upvotes: 1

Views: 85

Answers (2)

Ingo Karkat
Ingo Karkat

Reputation: 172698

If you intend to have the same buffer in multiple columns continuously, like reading a book, there's the MPage plugin that offers this.

Upvotes: 1

larsks
larsks

Reputation: 312323

Split the document into two panes, and then in each pane :set scrollbind.

http://vim.wikia.com/wiki/Scrolling_synchronously

Upvotes: 2

Related Questions