Milan Vancura, 07.07.2008: > > Markus wrote: > > I have adapted my relativenumber patch to Vim 7.2a, initial version was from > > 21.02.2008. Unfortunately it didn't get into mainline yet. > > > > Short description: > > Set the new option 'relativenumber' or 'rnu' to display relative line > > numbers. > > With it you can just read the values for [count], that is used in very many > > commands (e.g. j k + - y d c < > gq gw =), without calculating it by > > yourself. > > This evolves the power of the count mechanism more than ever. > > Hi, > > I remember Nick Gravgaard already needed such option and I wrote a simple vim > script doing that, with no patch. It is not ideal of course (no events used, > for example - one must press a hot key with this alpha version of the script) > but it shows the problem probably has a solution even using vim script > language > only. What do you think?
I think this is a kind of feature, that should just be available as a simple and efficient :set option. I don't know much about VimScript, but I guess it could be feasible to implement it without functional drawbacks. But then you could also implement the 'number' option in VimScript and throw out of the sources. Anyway there would still remain the performance issue. And of course the missing operator convenience of the :set command. So I really think such features belong into the sources. Markus --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---