recursive command call

2018-02-16 Thread Ni Va
Hi,


With this XPATH command, would like to give to user proposal list from 
helper#XpathList(A,L,P) func and recall helper#XpathList(A,L,P) with the list's 
word selected by user (out of calling edit).

Is it possible ?


Thank you




fun! helper#XpathList(A,L,P) "{{{

ruby << EOF

  require 'ox'
  require 'open-uri'

  # 0. on one xml file
  xmlpath = ENV['tmp']+"/localConf.xml"
  doc = Ox.parse(open(xmlpath).read)

  # 1. client search string node nam"
  searched_node = 'RESSOURCE'

  # 2. retrieve all sorted child possible elements'name
  arr = doc.root.locate('*/' + searched_node)

  arr_out = {}
  arr.each { |a| 
a.each {|key, value| 
  arr_out[key.value]=""
}
  }

  # arr_out = ['this', 'is', 'it!', 'Through ruby code', 'this is it !']
  # 3.
  Vim::command("return " + arr_out.keys().to_s )

EOF
endfunction "}}}   :
command! -nargs=1 -bang -complete=customlist,helper#XpathList 
  \ XPATH edit 
  

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Moving away from SourceForge

2018-02-16 Thread Bram Moolenaar

The recent (and ongoing) outage of the Vim website on SourceForge shows
again that this is not a good place to host Vim.

I have an offer to move to osdn.net, which should provide us with a
similar service, but better.  It should then also be possible to use
https://www.vim.org.

If you have positive or negative comments about moving to osdn.net,
let's discuss that.


-- 
There are 10 kinds of people: Those who understand binary and those who don't.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Moving away from SourceForge

2018-02-16 Thread George V. Reilly
On Fri, Feb 16, 2018 at 11:17 AM, Christian J. Robinson 
wrote:

> On Fri, 16 Feb 2018, Bram Moolenaar wrote:
>
> The recent (and ongoing) outage of the Vim website on SourceForge shows
>> again that this is not a good place to host Vim.
>>
>
> [...]
>
> If you have positive or negative comments about moving to osdn.net, let's
>> discuss that.
>>
>
> I think this move is the right choice even without the outage.
> SourceForge's current owners/leadership has been engaged in behaviors that
> are antithetical to the original mission of the service:
>
> https://en.wikipedia.org/wiki/SourceForge#Controversies


Can you actually run a custom website on osdn.net? Both the Project Web
Servers (e.g., http://peazip.osdn.jp/) and the Project Top Page/Dashboard
(e.g., https://osdn.net/projects/peazip/) make it look like you can't.

Vim.org is a PHP-based website, but is it actually using any server-side
code? If it's static HTML, then GitHub Pages is quite satisfactory.

-- 
/George V. Reilly  geo...@reilly.org  Twitter: @georgevreilly
*www.GeorgeVReilly.com *

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Moving away from SourceForge

2018-02-16 Thread Bailey Stoner
Although I completely think moving away from SourceForge is a good idea for any 
project, it’s worth noting that SourceForge was acquired in 2012 (after the 
adware thing) so their current leadership probably isn’t to blame.


16. Feb 2018 11:38 by geo...@reilly.org:


> On Fri, Feb 16, 2018 at 11:17 AM, Christian J. Robinson > <> 
> hept...@gmail.com> >>  wrote:
>
>> On Fri, 16 Feb 2018, Bram Moolenaar wrote:
>>
>>
>>> The recent (and ongoing) outage of the Vim website on SourceForge shows 
>>> again that this is not a good place to host Vim.
>>>
>>
>> [...]
>>
>>
>>> If you have positive or negative comments about moving to >>> osdn.net>>> , 
>>> let's discuss that.
>>>
>>
>> I think this move is the right choice even without the outage. SourceForge's 
>> current owners/leadership has been engaged in behaviors that are 
>> antithetical to the original mission of the service:
>>
>> https://en.wikipedia.org/wiki/SourceForge#Controversies
>
> Can you actually run a custom website on > osdn.net> ? Both the Project Web 
> Servers (e.g., > http://peazip.osdn.jp/> ) and the Project Top Page/Dashboard 
> (e.g., > https://osdn.net/projects/peazip/> ) make it look like you can't.
> Vim.org is a PHP-based website, but is it actually using any server-side 
> code? If it's static HTML, then GitHub Pages is quite satisfactory.
> -- > /George V. Reilly  > geo...@reilly.org>   Twitter: @georgevreilly> 
> www.GeorgeVReilly.com>  
>
> -- 
> -- 
> You received this message from the "vim_use" 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_use" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to > vim_use+unsubscr...@googlegroups.com> .
> For more options, visit > https://groups.google.com/d/optout> .
>

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Moving away from SourceForge

2018-02-16 Thread Bram Moolenaar

George Reilly wrote:

> On Fri, Feb 16, 2018 at 11:17 AM, Christian J. Robinson 
> wrote:
> 
> > On Fri, 16 Feb 2018, Bram Moolenaar wrote:
> >
> > The recent (and ongoing) outage of the Vim website on SourceForge shows
> >> again that this is not a good place to host Vim.
> >>
> >
> > [...]
> >
> > If you have positive or negative comments about moving to osdn.net, let's
> >> discuss that.
> >>
> >
> > I think this move is the right choice even without the outage.
> > SourceForge's current owners/leadership has been engaged in behaviors that
> > are antithetical to the original mission of the service:
> >
> > https://en.wikipedia.org/wiki/SourceForge#Controversies

That was before SourceForge was taken over by another company.
Anyway, the current outage proves that the quality of service is not
good.

> Can you actually run a custom website on osdn.net? Both the Project Web
> Servers (e.g., http://peazip.osdn.jp/) and the Project Top Page/Dashboard
> (e.g., https://osdn.net/projects/peazip/) make it look like you can't.
> 
> Vim.org is a PHP-based website, but is it actually using any server-side
> code? If it's static HTML, then GitHub Pages is quite satisfactory.

I've been told it should be possible to run PHP and MySQL on osdn.net.
The database access is essential in the current setup.

-- 
There can't be a crisis today, my schedule is already full.

 /// Bram Moolenaar -- b...@moolenaar.net -- http://www.Moolenaar.net   \\\
///sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org///
 \\\help me help AIDS victims -- http://ICCF-Holland.org///

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Moving away from SourceForge

2018-02-16 Thread Christian Brabandt

On Fr, 16 Feb 2018, Bram Moolenaar wrote:

> 
> The recent (and ongoing) outage of the Vim website on SourceForge shows
> again that this is not a good place to host Vim.
> 
> I have an offer to move to osdn.net, which should provide us with a
> similar service, but better.  It should then also be possible to use
> https://www.vim.org.
> 
> If you have positive or negative comments about moving to osdn.net,
> let's discuss that.

I have no experience with osdn.net, but I think everything is better 
than sf.net. Hopefully service is reliable there and you won't have much 
trouble with setting up all required things. Good luck with it.

If I can help with anything, you know how to reach me

Best,
Christian
-- 
Wie man sein Kind nicht nennen sollte: 
  I. K. Russ 

-- 
-- 
You received this message from the "vim_use" 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_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to vim_use+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.