Saturday, March 24, 2012

Re: Horizontal Ruler in interface?

Hi rameo!

On Fr, 23 Mär 2012, rameo wrote:

> I would like to know if it is possible in a future gvim release to add
> a horizontal ruler like the actual vertical ruler (set ruler)
> (p.e. set:coruler --> set column ruler)
>
> I would like to see always the columnnumbers
> 123456789*123456789*123456789* etc
>
> I know there is a plugin to add a horizontal ruler in the text (which
> I use often) but putting it in the text moves the text (changes the
> line numbers of the text).
>
> I also added the column number info in the statusbar but in this case
> I have to click on every column to see where I'am

can't you do something like this:
~$ cat columns.vim
setl scrollbind
abo sp +enew
call setline(1,repeat('1234567890',100))
let &l:stl="%#Normal#".repeat(' ',winwidth(0))
res 1
setl scrollbind nomod buftype=nofile
wincmd p
~$

That opens a new split window above your current window, put some
numbers in it and scrollbind it to your original window.

regards,
Christian

--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

No comments: