On Thu, May 30, 2013 at 3:07 PM, Christian Brabandt <[email protected]> wrote:
> Forwarding to vim-dev
>
> On Mi, 29 Mai 2013, Ben Fritz wrote:
>
>> I like the proposal by "glts" myself:
>>
>> > - ":set nonu nornu" means: I don't want any line numbers;
>> > - ":set nu nornu" means: I want to see only absolute numbers;
>> > - ":set nonu rnu" means: I want to see only relative numbers;
>> > - ":set nu rnu" means: I want to have the best of both worlds.
I like this option-interrelationship. The code simpler too. The only missing
'feature' is the alignment of the current number (patch posted at [1]), compare
(editing misc1.c):
--8<--
1 {
97 char_u *p;
1 char_u *newline;
2 char_u *oldline;
-->8--
vs:
--8<--
1 {
97 char_u *p;
1 char_u *newline;
2 char_u *oldline;
-->8--
The former differentiates the current line number from the relatives ones by
aligning it to the left. This leaves a quite visible gap in the number column
- some people would find this aesthetically displeasing. I find that my brain
spends like a few milliseconds :) saying "oh this blank here is not really part
of the file content, it's the left over space for the current line number" - it
can be distracting at times. Ironically the intention of showing the current
line number there is to avoid the distraction of having to move your eyes down
to the statusline just to find out the current line number.
The latter keeps the current line number aligned with the relative ones.
There's no more gap - no more distraction when eyeballing the lines.
Some would argue that now it's a bit hard to differentiate between current line
number and the relative ones but that can be solved via syntax highlighting but
then there's also people who do not prefer colors in their editor.
Choices... choices...
:/
nazri
[1] https://groups.google.com/forum/#!msg/vim_dev/tOmXNHXsAKE/EiozNh9nUDgJ
--
--
You received this message from the "vim_dev" 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
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.