Hi sxc4244!

On Di, 25 Jun 2013, [email protected] wrote:

> On Thursday, May 30, 2013 2:31:11 AM UTC-4, Nazri wrote:
> > On Wed, Feb 6, 2013 at 11:06 PM, Bram Moolenaar <[email protected]> wrote:
> > 
> > > No, I don't want to remove or deprecate existing options.  It's very
> > 
> > > annoying for people who get a new Vim version, especially if they didn't
> > 
> > > install it themselves.
> > 
> > >
> > 
> > > I'm not sure the whole 'linenumber' option thing is the right way to go.
> > 
> > > We do not need to offer every possible way a user wants to see line
> > 
> > > numbers.
> > 
> > 
> > 
> > The 'linenumber' patch adds too much code for controlling how the
> > 
> > current line number is shown when relative number is set.
> > 
> > 
> > 
> > Lane East's approach (earlier in this thread, rnucurrent.diff) is much
> > 
> > better and less intrusive but the proposed solution is flawed - it uses
> > 
> > a global variable for holding the option instead of window-local.
> > 
> > 
> > 
> > Attached is a patch based on Lane East's idea. I changed the option name
> > 
> > from "relativenumbercurrent" to the shorter "currentnumber":
> > 
> > 
> > 
> > Excerpt from ":help currentnumber":
> > 
> > --8<--
> > 
> >                                         'currentnumber' 'cnu'
> > 
> > 'currentnumber' 'cnu'   number (default 0)
> > 
> >                         local to window
> > 
> >                         {not in Vi}
> > 
> >         When 'relativenumber' is set, this option controls how the current 
> > line
> > 
> >         number is shown:
> > 
> >         value   effect
> > 
> >          -1     Show current line number, left aligned
> > 
> >           0     Show 0 instead of current line number
> > 
> >           1     Show current line number, right aligned
> > 
> >         When 'relativenumber' is not set, this option has no effect.
> > 
> > -->8--
> > 
> > 
> > 
> > Several people have raised their unhappiness at how the new behavior of
> > 
> > 'relativenumber' using a lot of screen columns for showing the current
> > 
> > line number for large files.  The proposed 'currentnumber' option should
> > 
> > make everyone happy.
> > 
> > 
> > 
> > nazri
> 
> Is there any movement with this patch? What are Bram's thoughts on it?
> 
> I'm finding that the relativenumber changes are breaking the an old and 
> fairly well-known method toggling relative and absolute numbers as configured 
> here: http://www.vimbits.com/bits/192 . While I like this feature, I do agree 
> having an option to default to the "old" behavior is best moving forward.

A similar patch was integrated, which does not need a new option but 
depends on how both options 'number' and 'relativenumber' work:
https://groups.google.com/d/msg/vim_dev/VBKxaoILi0s/l9o-OHv3vtkJ

regards,
Christian
-- 
Das Herz vor Freude schneller puckert, wenn man die Frühstückseier zuckert.

-- 
-- 
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.


Raspunde prin e-mail lui