Re: ANNC: Relative Numbering plugin

2008-09-16 Fir de Conversatie Tony Mechelynck

On 15/09/08 21:22, James Vega wrote:
> On Sun, Sep 14, 2008 at 08:57:59PM +0200, Rhialto wrote:
>> The link you have there,
>> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
>> , redirects (now, maybe not before?) to
>> http://vim_dev.googlegroups.com/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
>
> On Mon, Sep 15, 2008 at 03:00:09PM -0400, Charles Campbell wrote:
>> Let's consider the link under debate:
>>
>> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
>>
>> The hostname is "groups.google.com".  No underscores there.
>
> Which, as you can see above, Rhialto says redirects to a
> vim_dev.googlegroups.com link.  FWIW, Firefox handled the redirect fine
> for me.

Whether or nor vim_dev.googlegroups.com can be resolved may vary from OS 
to OS. When I was on Windows, Firefox had no problem resolving 
-electra-.deviantart.com which is invalid in a similar way, but with 
dashes. On Linux I cannot get it to find the same host by querying the 
same DNS server. There is a workaround if you know the dotted-quad or 
hex-IPv6 IP address (an ugly workaround but better than none at all); it 
consists of adding a line for it in your hosts file (on Linux, 
/etc/hosts ; on Windows the file exists too but I'm less sure of where). 
The line consists of the appropriate numeric address followed by one or 
more tabs and then the symbolic host name. If the numeric address of 
that host ever changes you will have to change the line in the hosts 
file. In effect, what this workaround is doing is to resolve that 
particular host locally rather than by querying an external DNS server 
(your hosts file is indeed a "local DNS server", external servers are 
only queried when that "local server" gives no answer).

In this case the following line ought to do the job:
209.85.133.137  vim_dev.googlegroups.com

You can add comments in your hosts file (and I recommend that you do): 
any line starting with a # character is a comment. It is of course 
permitted to have several symbolic names for a single numeric address.


Best regards,
Tony.
-- 
To A Quick Young Fox:
Why jog exquisite bulk, fond crazy vamp,
Daft buxom jonquil, zephyr's gawky vice?
Guy fed by work, quiz Jove's xanthic lamp --
Zow!  Qualms by deja vu gyp fox-kin thrice.
-- Lazy Dog

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



Re: ANNC: Relative Numbering plugin

2008-09-15 Fir de Conversatie Charles Campbell

James Vega wrote:
> On Sun, Sep 14, 2008 at 08:57:59PM +0200, Rhialto wrote:
>   
>> The link you have there,
>> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
>> , redirects (now, maybe not before?) to
>> http://vim_dev.googlegroups.com/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
>> 
>
> On Mon, Sep 15, 2008 at 03:00:09PM -0400, Charles Campbell wrote:
>   
>> Let's consider the link under debate:
>>
>> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
>>
>> The hostname is "groups.google.com".  No underscores there.
>> 
>
> Which, as you can see above, Rhialto says redirects to a
> vim_dev.googlegroups.com link.  FWIW, Firefox handled the redirect fine
> for me.
>   
OK.  Still, there's nothing that I can do about that redirect or its 
underscore.  Unless I follow the link and store a copy of the patch 
somewhere myself.

Regards,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-09-15 Fir de Conversatie James Vega

On Sun, Sep 14, 2008 at 08:57:59PM +0200, Rhialto wrote:
> The link you have there,
> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
> , redirects (now, maybe not before?) to
> http://vim_dev.googlegroups.com/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2

On Mon, Sep 15, 2008 at 03:00:09PM -0400, Charles Campbell wrote:
> Let's consider the link under debate:
> 
> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
> 
> The hostname is "groups.google.com".  No underscores there.

Which, as you can see above, Rhialto says redirects to a
vim_dev.googlegroups.com link.  FWIW, Firefox handled the redirect fine
for me.

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



Re: ANNC: Relative Numbering plugin

2008-09-15 Fir de Conversatie Charles Campbell

Matthew Winn wrote:
> On Sun, 14 Sep 2008 21:09:29 +0200, Tony Mechelynck
> <[EMAIL PROTECTED]> wrote:
>
>   
>> What do you mean, they aren't allowed? Not only do all the Vim Google 
>> Groups include an underscore in their names, when I click that link (in 
>> SeaMonkey on openSUSE Linux 11.0) I get a page saying "Found. Please 
>> click the following link to continue:" with a much longer link.
>> 
>
> RFC1912:
>
>Allowable characters in a label for a host name are only ASCII
>letters, digits, and the `-' character. Labels may not be all
>numbers, but may have a leading digit (e.g., 3com.com). Labels
>must end and begin only with a letter or digit. See [RFC 1035]
>and [RFC 1123].(Labels were initially restricted in [RFC 1035] to
>start with a letter, and some older hosts still reportedly have
>problems with the relaxation in [RFC 1123].) Note there are some
>Internet hostnames which violate this rule (411.org, 1776.com).
>The presence of underscores in a label is allowed in [RFC 1033],
>except [RFC 1033] is informational only and was not defining
>a standard.
>
>   
Let's consider the link under debate:

http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2

The hostname is "groups.google.com".  No underscores there.

Regards,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-09-15 Fir de Conversatie Matthew Winn

On Sun, 14 Sep 2008 21:09:29 +0200, Tony Mechelynck
<[EMAIL PROTECTED]> wrote:

> What do you mean, they aren't allowed? Not only do all the Vim Google 
> Groups include an underscore in their names, when I click that link (in 
> SeaMonkey on openSUSE Linux 11.0) I get a page saying "Found. Please 
> click the following link to continue:" with a much longer link.

RFC1912:

   Allowable characters in a label for a host name are only ASCII
   letters, digits, and the `-' character. Labels may not be all
   numbers, but may have a leading digit (e.g., 3com.com). Labels
   must end and begin only with a letter or digit. See [RFC 1035]
   and [RFC 1123].(Labels were initially restricted in [RFC 1035] to
   start with a letter, and some older hosts still reportedly have
   problems with the relaxation in [RFC 1123].) Note there are some
   Internet hostnames which violate this rule (411.org, 1776.com).
   The presence of underscores in a label is allowed in [RFC 1033],
   except [RFC 1033] is informational only and was not defining
   a standard.

-- 
Matthew Winn

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



Re: ANNC: Relative Numbering plugin

2008-09-14 Fir de Conversatie Tony Mechelynck

On 14/09/08 20:57, Rhialto wrote:
> On Mon 18 Aug 2008 at 16:15:10 -0400, Charles Campbell wrote:
>> Hello!
>>
>> I've issued a new plugin on my website:
>> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses
>
> The link you have there,
> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
> , redirects (now, maybe not before?) to
> http://vim_dev.googlegroups.com/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
> which Firefox complains that it cannot find ("Address Not Found Firefox
> can't find the server at vim_dev.googlegroups.com."). That is probably
> because host names with an underscore (vim_dev.googlegroups.com) are not
> allowed.
>
> Doesn't anyone else notice that?
>
>> Chip Campbell
> -Olaf.

What do you mean, they aren't allowed? Not only do all the Vim Google 
Groups include an underscore in their names, when I click that link (in 
SeaMonkey on openSUSE Linux 11.0) I get a page saying "Found. Please 
click the following link to continue:" with a much longer link.

Best regards,
Tony.
-- 
I could dance till the cows come home.  On second thought, I'd rather
dance with the cows till you come home.
-- Groucho Marx

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



Re: ANNC: Relative Numbering plugin

2008-09-14 Fir de Conversatie Rhialto

On Mon 18 Aug 2008 at 16:15:10 -0400, Charles Campbell wrote:
> 
> Hello!
> 
> I've issued a new plugin on my website:  
> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses 

The link you have there,
http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
, redirects (now, maybe not before?) to
http://vim_dev.googlegroups.com/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
which Firefox complains that it cannot find ("Address Not Found Firefox
can't find the server at vim_dev.googlegroups.com."). That is probably
because host names with an underscore (vim_dev.googlegroups.com) are not
allowed.

Doesn't anyone else notice that?

> Chip Campbell
-Olaf.
-- 
___ Olaf 'Rhialto' Seibert  -- You author it, and I'll reader it.
\X/ rhialto/at/xs4all.nl-- Cetero censeo "authored" delendum esse.

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



Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Bram Moolenaar


Markus Heidelberg wrote:

> Tony Mechelynck, 24.08.2008:
> > 
> > OTOH, I would have nothing against both above-mentioned patches being 
> > incorporated into the mainline sources, Bill's patch as part of the 
> > +float feature, and your relative-numbers patch either as standard or as 
> > another optional feature (I suppose the latter would imply bracketing 
> > all its changes in #ifdef directives but it might be the better choice). 
> > But of course Bram has the final say on this matter.
> 
> If encapsulating the feature in #ifdef directives would be required
> for mainline, I would do it. But I don't think it's the better choice.
> It is a small feature and by using #ifdef the source code would be
> split up even though much of the environment already exists because of
> the 'number' option.

I think it's a good idea to have a central place to find Vim patches.
www.vim.org would be the right place for them.  I don't want to add the
actual source code there (unless it's a relatively small patch file).
It's better for each modification to have their own site, with
CVS/Subversion, docs, etc.  The central place would be listing the
available patches, description and a link to the site where it can be
downloaded.

Perhaps it's sufficient to add them to the scripts, with a special type.
And instead of a download you would have a link to the external site.

-- 
hundred-and-one symptoms of being an internet addict:
10. And even your night dreams are in HTML.

 /// Bram Moolenaar -- [EMAIL PROTECTED] -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\download, build and distribute -- http://www.A-A-P.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

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



Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Markus Heidelberg

Tony Mechelynck, 26.08.2008:
> 
> On 26/08/08 23:38, Markus Heidelberg wrote:
> > Tony Mechelynck, 24.08.2008:
> >> OTOH, I would have nothing against both above-mentioned patches being
> >> incorporated into the mainline sources, Bill's patch as part of the
> >> +float feature, and your relative-numbers patch either as standard or as
> >> another optional feature (I suppose the latter would imply bracketing
> >> all its changes in #ifdef directives but it might be the better choice).
> >> But of course Bram has the final say on this matter.
> >
> > If encapsulating the feature in #ifdef directives would be required for
> > mainline, I would do it. But I don't think it's the better choice. It is a
> > small feature and by using #ifdef the source code would be split up even
> > though much of the environment already exists because of the 'number' 
> > option.
> >
> > Markus
> 
> Well, #ifdef's would be needed if this feature is included as optional 
> (meaning you can include or exclude it at compile-time and test for it 
> with has()). If the fature is included as standard they aren't 
> necessary, but maybe Bram won't want to include as standard, or maybe 
> not at all, we'll see. In any case, the availability can still be tested 
> with exists('+relativenumber') or something (name of the option with a 
> plus sign) and anyone using the feature should test it this way until 
> any builds without it are hopelessly obsolete (if ever).
> 
> Best regards,
> Tony.

Yes, I've already understand you in your last mail.
optional feature -> #ifdef FEAT_RELATIVENUMBER -> +-relativenumber
But I think that wouldn't beautify the source code and would be overhead for
just a single option.

Currently I use exists("&rnu") to be able to use the self-compiled and the
distribution (well, Gentoo, also self-compiled) Vim.

Markus


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



Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Markus Heidelberg

Ben Fritz, 25.08.2008:
> 
> I have not tried the patch, because it is too much trouble for me to
> compile my own Vim on Windows. Yes, I'm on vim-dev, but a lot of
> vimscript stuff and discussion of features/bugs happens that does not
> require me to compile my own Vim or try out 3rd-party patches.

Yes, of course, vim-dev is not restricted to C source development.

> All this being said, I would certainly _prefer_ if this feature were a
> built-in option rather than a vimscript plugin. It would be faster (I
> have some speed issues when using it on large files with as many lines
> as possible showing on my rotated monitor),

Only then? It seems as if I had a really old machine (from 2002). For me it's
not usable for example in gvim, even if syntax highlighting is off. But why
the big performance difference between vim and gvim?

> it would allow you to
> easily detect whether it was active (with &relnu or something), and I
> wouldn't need to bother checking yet another thing for updates on a
> regular basis. So, keep the patch around and keep it updated, in the
> hopes that someday, somehow, it gets integrated into the main line.

I will do that.

Markus


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



Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Tony Mechelynck

On 26/08/08 23:38, Markus Heidelberg wrote:
> Tony Mechelynck, 24.08.2008:
>> OTOH, I would have nothing against both above-mentioned patches being
>> incorporated into the mainline sources, Bill's patch as part of the
>> +float feature, and your relative-numbers patch either as standard or as
>> another optional feature (I suppose the latter would imply bracketing
>> all its changes in #ifdef directives but it might be the better choice).
>> But of course Bram has the final say on this matter.
>
> If encapsulating the feature in #ifdef directives would be required for
> mainline, I would do it. But I don't think it's the better choice. It is a
> small feature and by using #ifdef the source code would be split up even
> though much of the environment already exists because of the 'number' option.
>
> Markus

Well, #ifdef's would be needed if this feature is included as optional 
(meaning you can include or exclude it at compile-time and test for it 
with has()). If the fature is included as standard they aren't 
necessary, but maybe Bram won't want to include as standard, or maybe 
not at all, we'll see. In any case, the availability can still be tested 
with exists('+relativenumber') or something (name of the option with a 
plus sign) and anyone using the feature should test it this way until 
any builds without it are hopelessly obsolete (if ever).

Best regards,
Tony.
-- 
Winter is the season in which people try to keep the house as warm as
it was in the summer, when they complained about the heat.

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



Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Markus Heidelberg

Charles Campbell, 24.08.2008:
> 
> I'll update the link to your patch (when I get a chance -- I'm still 
> updating vim on this machine+o/s).  I hope you don't consider my plugin 
> a competitor, I thought of it as more of a step towards your patch (whet 
> folks' appetites, as it were) -- and maybe even as justification for 
> your patch given enough interest.  Anyway, that's why I included the 
> link to your patch.

Yes, the interest increased indeed. Thanks for your plugin and for linking to
the patch.

Markus


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



Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Markus Heidelberg

Tony Mechelynck, 24.08.2008:
> 
> OTOH, I would have nothing against both above-mentioned patches being 
> incorporated into the mainline sources, Bill's patch as part of the 
> +float feature, and your relative-numbers patch either as standard or as 
> another optional feature (I suppose the latter would imply bracketing 
> all its changes in #ifdef directives but it might be the better choice). 
> But of course Bram has the final say on this matter.

If encapsulating the feature in #ifdef directives would be required for
mainline, I would do it. But I don't think it's the better choice. It is a
small feature and by using #ifdef the source code would be split up even
though much of the environment already exists because of the 'number' option.

Markus


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



Re: ANNC: Relative Numbering plugin

2008-08-26 Fir de Conversatie Ben Fritz



On Aug 25, 11:05 am, Ben Fritz <[EMAIL PROTECTED]> wrote:
> On Aug 25, 10:29 am, Charles Campbell <[EMAIL PROTECTED]>
> wrote:
>
> > OK -- I've made a reporting-only variable, g:rltvnmbrmode (=1 enabled,
> > =0 disabled) for this purpose (v3b).
>
> Hey, thanks!
>
> Should that be b:rltvnmbrmode, since signs (and therefore the plugin)
> work local to a buffer?
>
> As you've stated, the best implementation would be window-local, but
> limitations in signs prevent that.

I noticed that v3e on your website does this. I downloaded it this
morning, but it appears to have a problem in that b:rltvnmbrmode does
not exist before calling :RltvNmbr (meaning that :RN fails unless you
call RltvNmbr first).

Unless you uploaded a new 3e without changing the version number..
--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: ANNC: Relative Numbering plugin

2008-08-25 Fir de Conversatie Ben Fritz



On Aug 25, 10:29 am, Charles Campbell <[EMAIL PROTECTED]>
wrote:
> OK -- I've made a reporting-only variable, g:rltvnmbrmode (=1 enabled,
> =0 disabled) for this purpose (v3b).
>

Hey, thanks!

Should that be b:rltvnmbrmode, since signs (and therefore the plugin)
work local to a buffer?

As you've stated, the best implementation would be window-local, but
limitations in signs prevent that.
--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: ANNC: Relative Numbering plugin

2008-08-25 Fir de Conversatie Charles Campbell

Ben Fritz wrote:
>
> On Aug 23, 6:20 pm, Charles Campbell <[EMAIL PROTECTED]>
> wrote:
>   
>> I'll update the link to your patch (when I get a chance -- I'm still
>> updating vim on this machine+o/s).  I hope you don't consider my plugin
>> a competitor, I thought of it as more of a step towards your patch (whet
>> folks' appetites, as it were) -- and maybe even as justification for
>> your patch given enough interest.  Anyway, that's why I included the
>> link to your patch.
>>
>> Regards, and thanks for the patch!
>> 
>
> Just want to say, I love the plugin and installed it immediately. I'll
> admit that I only use it occasionally, but I do use it. Most of my use
> is for jumping several lines up/down with j or k, though I may
> eventually find other uses for it. I have kind of trained myself to
> use other methods for lack of a quick and easy way to see relative
> line numbers without disrupting my "flow" by manually counting or
> doing arithmetic on the absolute numbers.
>
> Just a couple of gripes:
>
> 1. The default italic text for the signs causes the number to lean
> outside of the signs column in Windows gvim. I have needed to override
> your colors to remove the italics.
>   
I don't know of any way to detect whether the font being used leans out 
of the signs column.
Version 3b (available from my website as 
http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR)
now documents the two highlighting groups that are used to make it easer 
for folks to use their own preferences.
> 2. There isn't a good way that I can find to detect that the numbers
> are being displayed. I would like to have the relative numbers replace
> the absolute line numbers from :set nu when it is active, which I
> could do myself if there were a reliable way to detect whether this
> plugin is active.
>   
OK -- I've made a reporting-only variable, g:rltvnmbrmode (=1 enabled, 
=0 disabled) for this purpose (v3b).

Thank you for the feedback,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-25 Fir de Conversatie Ben Fritz



On Aug 23, 6:20 pm, Charles Campbell <[EMAIL PROTECTED]>
wrote:
> I'll update the link to your patch (when I get a chance -- I'm still
> updating vim on this machine+o/s).  I hope you don't consider my plugin
> a competitor, I thought of it as more of a step towards your patch (whet
> folks' appetites, as it were) -- and maybe even as justification for
> your patch given enough interest.  Anyway, that's why I included the
> link to your patch.
>
> Regards, and thanks for the patch!

Just want to say, I love the plugin and installed it immediately. I'll
admit that I only use it occasionally, but I do use it. Most of my use
is for jumping several lines up/down with j or k, though I may
eventually find other uses for it. I have kind of trained myself to
use other methods for lack of a quick and easy way to see relative
line numbers without disrupting my "flow" by manually counting or
doing arithmetic on the absolute numbers.

Just a couple of gripes:

1. The default italic text for the signs causes the number to lean
outside of the signs column in Windows gvim. I have needed to override
your colors to remove the italics.
2. There isn't a good way that I can find to detect that the numbers
are being displayed. I would like to have the relative numbers replace
the absolute line numbers from :set nu when it is active, which I
could do myself if there were a reliable way to detect whether this
plugin is active.

I have not tried the patch, because it is too much trouble for me to
compile my own Vim on Windows. Yes, I'm on vim-dev, but a lot of
vimscript stuff and discussion of features/bugs happens that does not
require me to compile my own Vim or try out 3rd-party patches.

All this being said, I would certainly _prefer_ if this feature were a
built-in option rather than a vimscript plugin. It would be faster (I
have some speed issues when using it on large files with as many lines
as possible showing on my rotated monitor), it would allow you to
easily detect whether it was active (with &relnu or something), and I
wouldn't need to bother checking yet another thing for updates on a
regular basis. So, keep the patch around and keep it updated, in the
hopes that someday, somehow, it gets integrated into the main line.
--~--~-~--~~~---~--~~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~--~~~~--~~--~--~---



Re: ANNC: Relative Numbering plugin

2008-08-23 Fir de Conversatie Tony Mechelynck

On 23/08/08 18:09, Markus Heidelberg wrote:
> sc, 23.08.2008:
>>> In view of that, I wonder if the enthusiastic users of this plugin have ever
>>> tested my patch, which is a lot more usable at this time.
>> a lot more useable than what?
>
> than the plugin
>
>> you are asking me to patch no
>> fewer than 22 modules:
>> [...]
>>
>> rebuild and re-install the app, as opposed to installing a
>> plugin that's been vimballed?
>
> Well, you are on the vim developers list. I don't force you to do it, but I
> think if you like the feature, you should probably try it once for comparison
> with the plugin.
>
>> so, no, i haven't tried your patch, sorry, call me lazy
>
> That's the problem with an external patch. It will never get the same
> attention as if it was included in mainline. And you can't simply install a
> new Vim version without worrying about the patch in contrast to a plugin.
>
> The point is that if you find it useful, you would probably like to have it in
> mainline without the problems of the plugin.
>
> Markus

Unlike sc, I could easily install it if I wanted -- running the "patch" 
program is no problem, and while Vim gets compiled in one terminal I can 
do something else -- even use Vim, an earlier build of course -- in 
other X-windows and/or virtual consoles. It's just that I don't feel 
like I'm going to use it (or Dr.Chip's relative-numbering plugin); and I 
daresay that the risk of a patch which affects so many different sources 
might get bit-rotten in the future (in contrast with Bill McCarthy's 
float functions patch, which affects only one source module) is also 
deterring me somewhat.

OTOH, I would have nothing against both above-mentioned patches being 
incorporated into the mainline sources, Bill's patch as part of the 
+float feature, and your relative-numbers patch either as standard or as 
another optional feature (I suppose the latter would imply bracketing 
all its changes in #ifdef directives but it might be the better choice). 
But of course Bram has the final say on this matter.


Best regards,
Tony.
-- 
Syntactic sugar causes cancer of the semicolon.
-- Epigrams in Programming, ACM SIGPLAN Sept. 1982

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



Re: ANNC: Relative Numbering plugin

2008-08-23 Fir de Conversatie Charles Campbell

Markus Heidelberg wrote:
> Charles E. Campbell, Jr., 19.08.2008:
>   
>> Tony Mechelynck wrote:
>> 
>>> On 18/08/08 22:15, Charles Campbell wrote:
>>>   
>>>   
 I've issued a new plugin on my website:
 http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses
 the signs capability of "huge" vim to give relative numbering.  After
 some comment period I expect to release it on vim.sf.net.  I'd like to
 mention the relative numbering patch in my document -- would someone
 please tell me where that patch is again?
 
>>> It's been sent to the vim_dev and vim_use lists as an attachment to a 
>>> mail titled "Re: 'relativenumber' patch updated for Vim 7.2", by Markus 
>>> Heidelberg, dated 2008-08-11 23:27:07 +0200. (Beware: The same thread 
>>> has an earlier 7.2 version of the same patch.)
>>>   
>>>   
>> Thank you, Tony -- I found the post & attachment, and I now have a link 
>> to it in my document.
>> 
>
> The link refers to the earlier version as Tony mentioned. This one is newer:
> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
>
> It seems as if the interest in this feature is not as small as supposed by
> Bram. Well, it's an exotic feature, and maybe its strangeness is it's destiny.
>
> However, there are several drawbacks to your plugin, where the numbers aren't
> shown correctly. These are just the major issues:
> - folding isn't handled (I wonder what the bugfix log "Aug 18, 2008 * Fixed
>   some bugs associated with folding" is all about)
> - scrolling without cursor movement (zz Ctrl-E ...)
> And last but not least the performance problem.
>
> In view of that, I wonder if the enthusiastic users of this plugin have ever
> tested my patch, which is a lot more usable at this time.
>   
Hello!

The folding issue that was addressed:
   text1
  fold
  text2
  fold

and with the cursor somewhere in the text2 block, the relative numbering 
was missing for text1.  Relative numbering shows now, so long as its 
within +-99 lines.

There are a number of things that I'd mention as drawbacks to my plugin:

  * it uses signs, and only about 200 signs are available (hence that 
+-99 constraint)  (and, of course, that means that they're not available 
for something else)
  * in addition to scrolling w/o cursor movement (ctrl-y, also), there's 
redraw which doesn't re-do the signs.  Should be a RedrawEvent or something.
  * signs are attached to buffers.  Hence multiple windows on the same 
buffer only shows one set of relative numbers; try :RN with multiple 
windows on a buffer showing different parts of the buffer and you'll see 
what I mean.

I'll update the link to your patch (when I get a chance -- I'm still 
updating vim on this machine+o/s).  I hope you don't consider my plugin 
a competitor, I thought of it as more of a step towards your patch (whet 
folks' appetites, as it were) -- and maybe even as justification for 
your patch given enough interest.  Anyway, that's why I included the 
link to your patch.

Regards, and thanks for the patch!
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-23 Fir de Conversatie Markus Heidelberg

sc, 23.08.2008:
> 
> > In view of that, I wonder if the enthusiastic users of this plugin have ever
> > tested my patch, which is a lot more usable at this time.
> 
> a lot more useable than what?

than the plugin

> you are asking me to patch no
> fewer than 22 modules:
> [...]
> 
> rebuild and re-install the app, as opposed to installing a
> plugin that's been vimballed?

Well, you are on the vim developers list. I don't force you to do it, but I
think if you like the feature, you should probably try it once for comparison
with the plugin.

> so, no, i haven't tried your patch, sorry, call me lazy

That's the problem with an external patch. It will never get the same
attention as if it was included in mainline. And you can't simply install a
new Vim version without worrying about the patch in contrast to a plugin.

The point is that if you find it useful, you would probably like to have it in
mainline without the problems of the plugin.

Markus


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



Re: ANNC: Relative Numbering plugin

2008-08-23 Fir de Conversatie sc

On Saturday 23 August 2008 07:24, Markus Heidelberg wrote:
> 
> Charles E. Campbell, Jr., 19.08.2008:
> > 
> > Tony Mechelynck wrote:
> > > On 18/08/08 22:15, Charles Campbell wrote:
> > >   
> > >> I've issued a new plugin on my website:
> > >> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses
> > >> the signs capability of "huge" vim to give relative numbering.  After
> > >> some comment period I expect to release it on vim.sf.net.  I'd like to
> > >> mention the relative numbering patch in my document -- would someone
> > >> please tell me where that patch is again?
> > >
> > > It's been sent to the vim_dev and vim_use lists as an attachment to a 
> > > mail titled "Re: 'relativenumber' patch updated for Vim 7.2", by Markus 
> > > Heidelberg, dated 2008-08-11 23:27:07 +0200. (Beware: The same thread 
> > > has an earlier 7.2 version of the same patch.)
> > >   
> > Thank you, Tony -- I found the post & attachment, and I now have a link 
> > to it in my document.
> 
> The link refers to the earlier version as Tony mentioned. This one is newer:
> http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2
> 
> It seems as if the interest in this feature is not as small as supposed by
> Bram. Well, it's an exotic feature, and maybe its strangeness is it's destiny.
> 
> However, there are several drawbacks to your plugin, where the numbers aren't
> shown correctly. These are just the major issues:
> - folding isn't handled (I wonder what the bugfix log "Aug 18, 2008 * Fixed
>   some bugs associated with folding" is all about)
> - scrolling without cursor movement (zz Ctrl-E ...)
> And last but not least the performance problem.
> 
> In view of that, I wonder if the enthusiastic users of this plugin have ever
> tested my patch, which is a lot more usable at this time.
> 
> Markus

a lot more useable than what?  you are asking me to patch no
fewer than 22 modules:

[Sat Aug 23 10:17] ~/temp> grep '^Index' vim-7.2-relativenumber-02.patch | nl
 1  Index: runtime/doc/quickref.txt
 2  Index: runtime/doc/version7.txt
 3  Index: runtime/doc/options.txt
 4  Index: runtime/doc/syntax.txt
 5  Index: runtime/doc/tags
 6  Index: runtime/lang/menu_de_de.latin1.vim
 7  Index: runtime/syntax/vim.vim
 8  Index: runtime/menu.vim
 9  Index: runtime/optwin.vim
10  Index: src/proto/misc2.pro
11  Index: src/edit.c
12  Index: src/ex_cmds.c
13  Index: src/gui.c
14  Index: src/misc1.c
15  Index: src/misc2.c
16  Index: src/move.c
17  Index: src/netbeans.c
18  Index: src/normal.c
19  Index: src/option.c
20  Index: src/option.h
21  Index: src/screen.c
22  Index: src/structs.h

rebuild and re-install the app, as opposed to installing a
plugin that's been vimballed?

so, no, i haven't tried your patch, sorry, call me lazy

sc



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



Re: ANNC: Relative Numbering plugin

2008-08-23 Fir de Conversatie Markus Heidelberg

Charles E. Campbell, Jr., 19.08.2008:
> 
> Tony Mechelynck wrote:
> > On 18/08/08 22:15, Charles Campbell wrote:
> >   
> >> I've issued a new plugin on my website:
> >> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses
> >> the signs capability of "huge" vim to give relative numbering.  After
> >> some comment period I expect to release it on vim.sf.net.  I'd like to
> >> mention the relative numbering patch in my document -- would someone
> >> please tell me where that patch is again?
> >
> > It's been sent to the vim_dev and vim_use lists as an attachment to a 
> > mail titled "Re: 'relativenumber' patch updated for Vim 7.2", by Markus 
> > Heidelberg, dated 2008-08-11 23:27:07 +0200. (Beware: The same thread 
> > has an earlier 7.2 version of the same patch.)
> >   
> Thank you, Tony -- I found the post & attachment, and I now have a link 
> to it in my document.

The link refers to the earlier version as Tony mentioned. This one is newer:
http://groups.google.com/group/vim_dev/attach/10fa0944a8b643b4/vim-7.2-relativenumber-02.patch?part=2

It seems as if the interest in this feature is not as small as supposed by
Bram. Well, it's an exotic feature, and maybe its strangeness is it's destiny.

However, there are several drawbacks to your plugin, where the numbers aren't
shown correctly. These are just the major issues:
- folding isn't handled (I wonder what the bugfix log "Aug 18, 2008 * Fixed
  some bugs associated with folding" is all about)
- scrolling without cursor movement (zz Ctrl-E ...)
And last but not least the performance problem.

In view of that, I wonder if the enthusiastic users of this plugin have ever
tested my patch, which is a lot more usable at this time.

Markus


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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie Charles E. Campbell, Jr.

Tony Mechelynck wrote:
> On 18/08/08 22:15, Charles Campbell wrote:
>   
>> Hello!
>>
>> I've issued a new plugin on my website:
>> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses
>> the signs capability of "huge" vim to give relative numbering.  After
>> some comment period I expect to release it on vim.sf.net.  I'd like to
>> mention the relative numbering patch in my document -- would someone
>> please tell me where that patch is again?
>> 
> [...]
>
> It's been sent to the vim_dev and vim_use lists as an attachment to a 
> mail titled "Re: 'relativenumber' patch updated for Vim 7.2", by Markus 
> Heidelberg, dated 2008-08-11 23:27:07 +0200. (Beware: The same thread 
> has an earlier 7.2 version of the same patch.)
>   
Thank you, Tony -- I found the post & attachment, and I now have a link 
to it in my document.

Regards,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie Tony Mechelynck

On 19/08/08 18:26, Charles Campbell wrote:
[...]
> Hmm -- this is the second time that I've uploaded a file and there's
> been a delay in its appearing.  I thought it was my browser last time
> just "saving time" by serving up a file it had already downloaded.  Now
> I'm not so sure what's happening.  Anyway, I downloaded it myself a few
> times, and its coming up as v2b.
>
> Regards,
> Chip Campbell

Sometimes I have that kind of doubts too -- in Mozilla browsers (such as 
Firefox and SeaMonkey), Ctrl-Shift-R reloads the current page, 
disregarding the cache (just Ctrl-R or View=>Reload doesn't always 
invalidate the cache). I've found that command helpful in that kind of 
situations.

Best regards,
Tony.
-- 
The moving cursor writes, and having written, blinks on.

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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie guivho

guivho wrote:
> Charles Campbell wrote:
>> guivho wrote:
>>> [snip]
>>> I downloaded it, but it claims to be v1c, despite what your website
>>> says.
>>>
>> Hello!
>>
>> Looks like a problem with my updating scripts -- found it, and v2b is
>> now up on my website.
> 
> So it claims, but I'm afraid it's still v1c.
Got v2b now,
Thanks,
Guido
> 
> Guido
> 
>> Thank you for letting me know!  I seldom download my own plugins as you
>> might imagine.
>>
>> Regards,
>> Chip Campbell
>>
>>
>>
> 
> 
> > 
> 
> 


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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie Charles Campbell

guivho wrote:
> Charles Campbell wrote:
>   
>> guivho wrote:
>> 
>>> [snip]
>>> I downloaded it, but it claims to be v1c, despite what your website
>>> says.
>>>
>>>   
>> Hello!
>>
>> Looks like a problem with my updating scripts -- found it, and v2b is
>> now up on my website.
>> 
>
> So it claims, but I'm afraid it's still v1c.
>   
Hmm -- this is the second time that I've uploaded a file and there's 
been a delay in its appearing.  I thought it was my browser last time 
just "saving time" by serving up a file it had already downloaded.  Now 
I'm not so sure what's happening.  Anyway, I downloaded it myself a few 
times, and its coming up as v2b.

Regards,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie guivho

Charles Campbell wrote:
> guivho wrote:
>> [snip]
>> I downloaded it, but it claims to be v1c, despite what your website
>> says.
>>
> Hello!
>
> Looks like a problem with my updating scripts -- found it, and v2b is
> now up on my website.

So it claims, but I'm afraid it's still v1c.

Guido

>
> Thank you for letting me know!  I seldom download my own plugins as you
> might imagine.
>
> Regards,
> Chip Campbell
>
>
> >
>
>


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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie Charles Campbell

guivho wrote:
> [snip]
> I downloaded it, but it claims to be v1c, despite what your website
> says.
>   
Hello!

Looks like a problem with my updating scripts -- found it, and v2b is 
now up on my website.

Thank you for letting me know!  I seldom download my own plugins as you 
might imagine.

Regards,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie guivho

Charles Campbell wrote:
> sc wrote:
>> On Tuesday 19 August 2008 09:50, Charles Campbell wrote:
>>
>>> sc wrote:
>>>
 thank *you* -- it looks really useful

 now can you help me make a toggle for it, so i don't need to
 burn two mappings for it?  like for example instead of
 saying "RltvNmbr is already enabled", which i can plainly
 see, why not turn it off?

 i looked for a variable i could test for in a toggle
 function but nothing jumped out at me


>>> RltvNmbr!   will turn it off.
>>>
>>> You could write your own command and function to do the toggling; as an
>>> example,
>>>
>>> com! RNcall s:RN()
>>> fun! s:RN()
>>>   if !exists("s:RN")
>>>let s:RN=1
>>>   else
>>>let s:RN= !s:RN
>>>   endif
>>>   if s:RN
>>>RltvNmbr
>>>   else
>>>RltvNmbr!
>>>   endif
>>> endfun
>>>
>>> Then :RN will toggle RltvNmbr.
>>>
>>> Regards,
>>> Chip Campbell
>>>
>> because we're using exists(), turning it off with !s:RN only
>> works once -- here's my implementation:
>>
>> nnoremap  rrr :silent call ToggleRltvNmbr()
>>
>> function! ToggleRltvNmbr()
>> if !exists("s:RN")
>> let s:RN = 1
>> RltvNmbr
>> else
>> unlet s:RN
>> RltvNmbr!
>> endif
>> endfunction
>>
>> and i used my spiffy new relative numbers to yank the
>> function for pasting here -- i love it!
>>
>> i may make RN buffer local, so i can use this in other
>> buffers in the same edit session without having to hit the
>> toggle three times, but already this is wonderful
>>
>> thanx again charles
>>
> You're welcome!  I'll include :RN in v2 when I release it (version 2a is
> currently on my website).

I downloaded it, but it claims to be v1c, despite what your website
says.

Guido

> Please rate it!  I've released v1 to vim.sf.net:
>
>   http://vim.sourceforge.net/scripts/script.php?script_id=2351
>
> Regards,
> Chip Campbell
>
>
> >
>
>


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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie Charles Campbell

sc wrote:
> On Tuesday 19 August 2008 09:50, Charles Campbell wrote:
>   
>> sc wrote:
>> 
>>> thank *you* -- it looks really useful
>>>
>>> now can you help me make a toggle for it, so i don't need to
>>> burn two mappings for it?  like for example instead of
>>> saying "RltvNmbr is already enabled", which i can plainly
>>> see, why not turn it off?
>>>
>>> i looked for a variable i could test for in a toggle
>>> function but nothing jumped out at me
>>>   
>>>   
>> RltvNmbr!   will turn it off.
>>
>> You could write your own command and function to do the toggling; as an 
>> example,
>>
>> com! RNcall s:RN()
>> fun! s:RN()
>>   if !exists("s:RN")
>>let s:RN=1
>>   else
>>let s:RN= !s:RN
>>   endif
>>   if s:RN
>>RltvNmbr
>>   else
>>RltvNmbr!
>>   endif
>> endfun
>>
>> Then :RN will toggle RltvNmbr.
>>
>> Regards,
>> Chip Campbell
>> 
>
> because we're using exists(), turning it off with !s:RN only
> works once -- here's my implementation:
>
> nnoremap  rrr :silent call ToggleRltvNmbr()
>
> function! ToggleRltvNmbr()
> if !exists("s:RN")
> let s:RN = 1
> RltvNmbr
> else
> unlet s:RN
> RltvNmbr!
> endif
> endfunction
>
> and i used my spiffy new relative numbers to yank the
> function for pasting here -- i love it!
>
> i may make RN buffer local, so i can use this in other
> buffers in the same edit session without having to hit the
> toggle three times, but already this is wonderful
>
> thanx again charles
>   
You're welcome!  I'll include :RN in v2 when I release it (version 2a is 
currently on my website).  Please rate it!  I've released v1 to vim.sf.net:

  http://vim.sourceforge.net/scripts/script.php?script_id=2351

Regards,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie sc

On Tuesday 19 August 2008 09:50, Charles Campbell wrote:
> 
> sc wrote:
> > thank *you* -- it looks really useful
> >
> > now can you help me make a toggle for it, so i don't need to
> > burn two mappings for it?  like for example instead of
> > saying "RltvNmbr is already enabled", which i can plainly
> > see, why not turn it off?
> >
> > i looked for a variable i could test for in a toggle
> > function but nothing jumped out at me
> >   
> RltvNmbr!   will turn it off.
> 
> You could write your own command and function to do the toggling; as an 
> example,
> 
> com! RNcall s:RN()
> fun! s:RN()
>   if !exists("s:RN")
>let s:RN=1
>   else
>let s:RN= !s:RN
>   endif
>   if s:RN
>RltvNmbr
>   else
>RltvNmbr!
>   endif
> endfun
> 
> Then :RN will toggle RltvNmbr.
> 
> Regards,
> Chip Campbell

because we're using exists(), turning it off with !s:RN only
works once -- here's my implementation:

nnoremap  rrr :silent call ToggleRltvNmbr()

function! ToggleRltvNmbr()
if !exists("s:RN")
let s:RN = 1
RltvNmbr
else
unlet s:RN
RltvNmbr!
endif
endfunction

and i used my spiffy new relative numbers to yank the
function for pasting here -- i love it!

i may make RN buffer local, so i can use this in other
buffers in the same edit session without having to hit the
toggle three times, but already this is wonderful

thanx again charles

sc



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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie sc

On Tuesday 19 August 2008 09:50, Charles Campbell wrote:
> 
> sc wrote:
> > thank *you* -- it looks really useful
> >
> > now can you help me make a toggle for it, so i don't need to
> > burn two mappings for it?  like for example instead of
> > saying "RltvNmbr is already enabled", which i can plainly
> > see, why not turn it off?
> >
> > i looked for a variable i could test for in a toggle
> > function but nothing jumped out at me
> >   
> RltvNmbr!   will turn it off.
> 
> You could write your own command and function to do the toggling; as an 
> example,
> 
> com! RNcall s:RN()
> fun! s:RN()
>   if !exists("s:RN")
>let s:RN=1
>   else
>let s:RN= !s:RN
>   endif
>   if s:RN
>RltvNmbr
>   else
>RltvNmbr!
>   endif
> endfun
> 
> Then :RN will toggle RltvNmbr.
> 
> Regards,
> Chip Campbell

of course -- thank you -- i will do it this way

sc



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



Re: ANNC: Relative Numbering plugin

2008-08-19 Fir de Conversatie Charles Campbell

sc wrote:
> thank *you* -- it looks really useful
>
> now can you help me make a toggle for it, so i don't need to
> burn two mappings for it?  like for example instead of
> saying "RltvNmbr is already enabled", which i can plainly
> see, why not turn it off?
>
> i looked for a variable i could test for in a toggle
> function but nothing jumped out at me
>   
RltvNmbr!   will turn it off.

You could write your own command and function to do the toggling; as an 
example,

com! RNcall s:RN()
fun! s:RN()
  if !exists("s:RN")
   let s:RN=1
  else
   let s:RN= !s:RN
  endif
  if s:RN
   RltvNmbr
  else
   RltvNmbr!
  endif
endfun

Then :RN will toggle RltvNmbr.

Regards,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-18 Fir de Conversatie Tony Mechelynck

On 18/08/08 22:15, Charles Campbell wrote:
> Hello!
>
> I've issued a new plugin on my website:
> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses
> the signs capability of "huge" vim to give relative numbering.  After
> some comment period I expect to release it on vim.sf.net.  I'd like to
> mention the relative numbering patch in my document -- would someone
> please tell me where that patch is again?
[...]

It's been sent to the vim_dev and vim_use lists as an attachment to a 
mail titled "Re: 'relativenumber' patch updated for Vim 7.2", by Markus 
Heidelberg, dated 2008-08-11 23:27:07 +0200. (Beware: The same thread 
has an earlier 7.2 version of the same patch.)

Best regards,
Tony.
-- 
A fool must now and then be right by chance.

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



Re: ANNC: Relative Numbering plugin

2008-08-18 Fir de Conversatie sc

On Monday 18 August 2008 20:39, Charles E. Campbell, Jr. wrote:
> 
> sc wrote:
> > On Monday 18 August 2008 15:15, Charles Campbell wrote:
> >   
> >> Hello!
> >>
> >> I've issued a new plugin on my website:  
> >> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses 

> > why is the section labeled Rndm?
> >   
> Whoops!  Looks like you caught a cut&paste error.  I'll fix it.
> 
> Thank you,

thank *you* -- it looks really useful

now can you help me make a toggle for it, so i don't need to
burn two mappings for it?  like for example instead of
saying "RltvNmbr is already enabled", which i can plainly
see, why not turn it off?

i looked for a variable i could test for in a toggle
function but nothing jumped out at me

sc




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



Re: ANNC: Relative Numbering plugin

2008-08-18 Fir de Conversatie Charles E. Campbell, Jr.

sc wrote:
> On Monday 18 August 2008 15:15, Charles Campbell wrote:
>   
>> Hello!
>>
>> I've issued a new plugin on my website:  
>> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses 
>> the signs capability of "huge" vim to give relative numbering.  After 
>> some comment period I expect to release it on vim.sf.net.  I'd like to 
>> mention the relative numbering patch in my document -- would someone 
>> please tell me where that patch is again?
>>
>> And, as you may notice, I think I've now got a way to respond again to 
>> messages on the mailing list.
>> 
>
> why is the section labeled Rndm?
>   
Whoops!  Looks like you caught a cut&paste error.  I'll fix it.

Thank you,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-18 Fir de Conversatie Charles E. Campbell, Jr.

Dominique Pelle wrote:
> On Mon, Aug 18, 2008 at 10:15 PM, Charles Campbell wrote:
>
>   
>> Hello!
>>
>> I've issued a new plugin on my website:
>> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses
>> the signs capability of "huge" vim to give relative numbering.  After
>> some comment period I expect to release it on vim.sf.net.  I'd like to
>> mention the relative numbering patch in my document -- would someone
>> please tell me where that patch is again?
>>
>> And, as you may notice, I think I've now got a way to respond again to
>> messages on the mailing list.
>>
>> Thank you,
>> Chip Campbell
>> 
>
>
> That's quite nice!  Thanks Chip.
>
> I noticed that the relative line numbering does not appear when
> resizing my terminal, until I move the cursor.  Attached patch
> fixes it (not sure if it's the best way to fix it):
>
>
> $ diff -d -c RltvNmbr.vim.orig RltvNmbr.vim
> *** RltvNmbr.vim.orig 2008-08-19 02:50:00.0 +0200
> --- RltvNmbr.vim2008-08-19 02:48:15.0 +0200
> ***
> *** 135,140 
> --- 135,141 
>  augroup RltvNmbrAutoCmd
> au!
>   au CursorMoved * call RltvNmbr(2)
> + au VimResized * call RltvNmbr(1)
> au ColorScheme * call ColorschemeLoaded()
>  augroup END
>   
Sounds good -- I'll use it!

Thank you,
Chip Campbell


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



Re: ANNC: Relative Numbering plugin

2008-08-18 Fir de Conversatie sc

On Monday 18 August 2008 15:15, Charles Campbell wrote:
> 
> Hello!
> 
> I've issued a new plugin on my website:  
> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses 
> the signs capability of "huge" vim to give relative numbering.  After 
> some comment period I expect to release it on vim.sf.net.  I'd like to 
> mention the relative numbering patch in my document -- would someone 
> please tell me where that patch is again?
> 
> And, as you may notice, I think I've now got a way to respond again to 
> messages on the mailing list.

why is the section labeled Rndm?

sc



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



Re: ANNC: Relative Numbering plugin

2008-08-18 Fir de Conversatie Dominique Pelle

On Mon, Aug 18, 2008 at 10:15 PM, Charles Campbell wrote:

> Hello!
>
> I've issued a new plugin on my website:
> http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses
> the signs capability of "huge" vim to give relative numbering.  After
> some comment period I expect to release it on vim.sf.net.  I'd like to
> mention the relative numbering patch in my document -- would someone
> please tell me where that patch is again?
>
> And, as you may notice, I think I've now got a way to respond again to
> messages on the mailing list.
>
> Thank you,
> Chip Campbell


That's quite nice!  Thanks Chip.

I noticed that the relative line numbering does not appear when
resizing my terminal, until I move the cursor.  Attached patch
fixes it (not sure if it's the best way to fix it):


$ diff -d -c RltvNmbr.vim.orig RltvNmbr.vim
*** RltvNmbr.vim.orig 2008-08-19 02:50:00.0 +0200
--- RltvNmbr.vim2008-08-19 02:48:15.0 +0200
***
*** 135,140 
--- 135,141 
 augroup RltvNmbrAutoCmd
au!
  au CursorMoved * call RltvNmbr(2)
+ au VimResized * call RltvNmbr(1)
au ColorScheme * call ColorschemeLoaded()
 augroup END

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



ANNC: Relative Numbering plugin

2008-08-18 Fir de Conversatie Charles Campbell

Hello!

I've issued a new plugin on my website:  
http://mysite.verizon.net/astronaut/vim/index.html#RLTVNMBR .  It uses 
the signs capability of "huge" vim to give relative numbering.  After 
some comment period I expect to release it on vim.sf.net.  I'd like to 
mention the relative numbering patch in my document -- would someone 
please tell me where that patch is again?

And, as you may notice, I think I've now got a way to respond again to 
messages on the mailing list.

Thank you,
Chip Campbell


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