On Feb 5, 7:11 am, lokev <[email protected]> wrote: > Hi > > I there any way to set up a horizontal ruler in vim? > > I've been googling this for a couple of hours now. What I visualize is > something like this: > > I use a dark background. With a horizontal ruler, column number, say, > 10, 20, 30 etc would be a slightly lighter shade. This for rapidly > figuring out column position to start editing. > > Say I want to edit word 7 on line 67, I do 67G7w, but it takes me > quite some time to figure out that it's actually word 7, I usually > just guesstimate and correct accordingly. With a horizontal ruler, I > can see that word 6 starts on column number 40 + 4, so I could just do > 67G44l instead. > > If this is possible to set up, of if there is any other approach to > achieve roughly the same thing, please let me know >
Vim 7.3 introduced the 'colorcolumn' option which allows exactly what you are asking for. According to the :help, it will work as long as you want to highlight no more than 256 columns (which seems a little excessive to me). -- 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
