Hello Markus,

I found a bug with your relative numbering patch.

The relative numbers are not updated properly when a scrollbinded
window is scrolled down due to the cursor being moved down in another
scrollbinded window.

To reproduce:

1. vim -u NONE
2. :h relativenumber
3. :only
4. :vsp
5. :windo set nowrap relativenumber scb
6. Move the cursor down by keeping 'j' pressed and look at the left
window's relative number

This is as of "Included patches: 1-148" from the vim_extended git repo.

Thanks for the patch. I haven't got the hang of looking at the
relative line numbers to jump to a specific line due to the way I've
gotten used to the 'old' way of jumping around lines - keeping j/k
pressed down, or through random guess as to what number to prefix them
with to go near the wanted line. Occasionally I do jump to lines by
referring to the relative number and I found that much faster.

On a side note, I think it would be useful if the relative numbers can
be displayed together with the line numbers, say using some sort of
separator between the two, or even using parentheses to differentiate
them, and the 'number' option could be modified to accept an argument,
for example:

:set number  - current behavior
:set number=line  - current behavior
:set number=relative  - same as current's :set relativenumber

:set number=line,relative
or
:set number=relative,line - show line numbers and relative line
numbers separated with a separator.

Specifying line,relative or relative,line would determine which number
is shown first.

With this you can get rid of the 'relativenumber' option

Kind regards,

nazri.

--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

Raspunde prin e-mail lui