On 03:00 Sun 25 Mar , rameo wrote: > On Saturday, March 24, 2012 2:22:26 PM UTC+1, [email protected] wrote: > > On Sat, 24 Mar 2012 14:06:30 +0100 > > Christian Brabandt wrote: > > > > > 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 > > > > Found this in my _vimrc: > > > > nmap \ru :2new Ruler<CR>8i1234567890<Esc>O12345678<Esc>:s/\d/ > > &/g<CR>:set nomod<CR>:winc j<CR> > > > > > > regards, > > Volker > > Thank you Christian, Marcin and Volker for your answers. > > Volker, I like the ruler in a buffer. > What I see is this: > > 1 2 3 4 5 6 7 8 > 12345678901234567890123456789012345678901234567890123456789012345678901234567890 > > I changed the 0 to * in order to better see the decades but why the first > line? > What do I have to do to remove the first line? > > Best, > Rameo > > -- > 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
If you don't want the first line this should work for you: nmap \ru :2new +set\ buftype=nofile\ nomod Ruler<CR>:%d _<CR>8i123456789*<Esc><CR>:winc j<CR> If you want the ruler to be longer change 8 to a higher value. Best, Marcin -- 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
