Column ruler (like line numbers) in vi / vim / gvim

Alex Stangl alex at stangl.us
Sat Sep 6 02:27:16 UTC 2014


On Sat, Sep 06, 2014 at 01:23:27AM +0200, Polytropon wrote:
> As a grown-old mainframe person, I'm thinking about something
> like this:
> 
> |...+....1....+....2....+....3....+....4....+....5....+....6
> Or even this:
> 
>          1         2         3         4         5         6
> ----+----0----+----0----+----0----+----0----+----0----+----0
> 
> The ruler should be located in the first line on top of the file,
> but not be part of the file.

Hi Polytropen,

Check out
http://vim.1045645.n5.nabble.com/Horizontal-Ruler-in-interface-td5590000.html

I just tried the last suggestion on that page (from Christian Brabrandt)
and it works great, and can be easily adapted to any of the formats you
like. To make the ruler go away, you can type Ctrl-W o

It's not clear how you want the ruler to work in wrap mode,
so maybe that doesn't work as you like.

Regards,

Alex


More information about the freebsd-questions mailing list