On Tuesday, January 29, 2013 10:18:28 AM UTC-6, Charles Campbell wrote: > Paul Ruane wrote: > > > Hi, > > > > > > I asked on the Vim reddit (http://www.reddit.com/r/vim/comments/ > > > 17gg56/) if anyone knew how to achieve this with existing > > > functionality or plug-in but apparently not. I would simply like to > > > have the option, when relativenumber is turned on, to have the current > > > line show the absolute line number rather than zero. Is this a > > > reasonable suggestion? > > > > > > Whilst it is not that hard to scan the status line, I find that I hit > > > this glitch in my workflow many, many times a day: when I want to know > > > what line I am on, I intuitively scan the gutter for the line number. > > > I then realise that relativenumber is on so I redirect my attention to > > > the status line and then have to parse the number from the other > > > fields down there. > > > > > :he 'number' > > > > set nu is shorter than > > set rnu > > > > Admittedly, this is not shown when relativenumber is enabled and number > > isn't, but the number option appears to have priority. Of course, its > > not merely showing numbering for just the current line, either. > > > > One issue about generally doing this is that relative numbering only > > reserves three spaces (how many people have over 100 rows on their > > monitors? just wondering), but files often have many more lines that > > that. Hence the gutter needs to be expanded, resulting in loss of > > valuable screen estate. I'd be willing to put it into my RltvNmbr > > plugin, but it uses signs to display relative numbering, and those are > > limited to two characters per line. > > > > Regards, > > C Campbell
I think '0' adds no value but an absolute number for the current line only would be useful. I keep rnu set and rarely set nu. In the meantime, I'd suggest creating a mapping to toggle between rnu, nu, and nornu nonu. -- -- 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.
