[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Two column layout

From: Chris Jones
Subject: Re: Two column layout
Date: Fri, 13 Jan 2012 14:40:34 -0500
User-agent: Mutt/1.5.18 (2008-05-17)

On Fri, Jan 13, 2012 at 11:30:53AM EST, Rhys Ulerich wrote:

> Is it possible to have two panes hold a single window (much like a two
> column layout in a magazine)?

> It'd be sweet to have

> A|D
> B|E
> C|F

> where A, B, C, D, E, F are sequential lines from, say, a text editor
> and | is a screen split.  Especially on a wide-but-not-tall monitor.

Not sure about your use case, but if I understand correctly, you can
also do this in Vim:

$ vim file.txt

CTRL-W v              split window ‘vertically’
CTRL-F                page down right half-window one screen worth
:set scrollbind       
CTRL-W h              cursor to left half-window
:set scrollbind       bind both half-windows' scrolling

You can now use the usual page, half-page, etc. scrollling keyboard
actions to scroll your text. 


:h scb
:h tw

The last two can be combined to tweak the width of your columns and your

You could also take a peek at the ‘pr’ command:

$ pr -3 -w 300 infile.txt | less

If your display has 260+ columns and your input file 80 characters
lines, this should present you with roughly formatted 3-column output.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]