[PATCH] provide random number generating functions for vimscript

2010-11-08 Thread H Xu
Hello: The attachment is a patch which provides two pseudo-random number generating functions for vimscript. Thanks. Hong Xu 2010/11/08 -- 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 htt

Re: [PATCH] provide random number generating functions for vimscript

2010-11-08 Thread Tony Mechelynck
On 08/11/10 09:10, H Xu wrote: Hello: The attachment is a patch which provides two pseudo-random number generating functions for vimscript. Thanks. Hong Xu 2010/11/08 See also Dr. Chip's random-number plugin, http://mysite.verizon.net/astronaut/vim/#RNDM Best regards, Tony. -- Eye have a

RE: [PATCH] provide random number generating functions for vimscript

2010-11-08 Thread xuh...@gmail.com
I forget the FEAT_FLOAT macro. The attachment is a reupload. On 08/11/10 09:10, H Xu wrote: > Hello: > > The attachment is a patch which provides two pseudo-random number > generating functions for vimscript. > > Thanks. > > Hong Xu > 2010/11/08 > -- You received this message from the "vim_dev"

How can I define a command that can be completed with both var and options?

2010-11-08 Thread Christophe-Marie Duquesne
Hi list, Using ":command", I can define a custom command that can be completed with variables names: :com -nargs=* -complete=var Foo call foo() which will let me complete :Foo from already defined variables. I can also define a command that can be completed with options names: :com -nargs=* -comp

Re: [PATCH] provide random number generating functions for vimscript

2010-11-08 Thread Bram Moolenaar
Hong Xu wrote: > The attachment is a patch which provides two pseudo-random number generating > functions for vimscript. Well, the patch is a bit big, I wonder if it can be done in a simpler way. At the same time, I think there should be a way to reset the seed to a known value. Needed for tes

Re: [PATCH] provide random number generating functions for vimscript

2010-11-08 Thread Christian Brabandt
Hi Bram! On Mo, 08 Nov 2010, Bram Moolenaar wrote: > > Hong Xu wrote: > > > The attachment is a patch which provides two pseudo-random number generating > > functions for vimscript. > > Well, the patch is a bit big, I wonder if it can be done in a simpler > way. > > At the same time, I think

Re: Regex \%V question

2010-11-08 Thread Christian Brabandt
Hi Benjamin! (re-posting to vim-dev, for clarity). On Fr, 05 Nov 2010, Benjamin R. Haskell wrote: > I still don't quite understand why my attempted solution to rameo's > problem didn't work... As a pared down example, why is the entire > visual range matched in this: > > x = outside visual

Vim cannot find xxd utility

2010-11-08 Thread Ben Fritz
I am unable to use the xxd utility in Vim 7.3.35 on Windows XP (installed via the "Cream without Vim" installer). Reinstalling does not help. Rolling back to version 7.3.27 works fine. >From :help win32-PATH: The directory of the Vim executable is appended to $PATH. This is mostly to make "!xxd'

Re: Regex \%V question

2010-11-08 Thread Benjamin R. Haskell
On Mon, 8 Nov 2010, Christian Brabandt wrote: Hi Benjamin! (re-posting to vim-dev, for clarity). On Fr, 05 Nov 2010, Benjamin R. Haskell wrote: I still don't quite understand why my attempted solution to rameo's problem didn't work... As a pared down example, why is the entire visual range

Re: Regex \%V question

2010-11-08 Thread James Vega
On Mon, Nov 8, 2010 at 3:34 PM, Christian Brabandt wrote: > On Fr, 05 Nov 2010, Benjamin R. Haskell wrote: >> Removing the optionality, it's also weird, as the trailing space >> (singular!?) isn't matched: >> >> /\%V\S\+\s*\%V >> x  VVV VVV VVV  x - text >>               - matc

RE: [PATCH] provide random number generating functions for vimscript

2010-11-08 Thread xuh...@gmail.com
Bram: I have reduced the size of the patch and fixed white space. The attachment is the new patch. I don't know why we have to reset the seed to a known value. It's impossible for a computer to generate continual random float number, we have to generate discrete values and convert them to appro

[DNS] vim.org should point to www.vim.org

2010-11-08 Thread Rye
When I tried to access http://vim.org, I got a DNS failure >Network Error (dns_server_failure) > >Your request could not be processed because an error occurred contacting the >DNS server. >The DNS server may be temporarily unavailable, or there could be a network >problem. > >For assistance, con

Null reference when $PATH is empty.

2010-11-08 Thread mattn
vim crash when $PATH is empty. below is a patch. check please. - Yasuhiro Matsumoto diff -r 1ccc1ace9e5b src/ex_getln.c --- a/src/ex_getln.cWed Nov 03 22:32:24 2010 +0100 +++ b/src/ex_getln.cTue Nov 09 13:02:54 2010 +0900 @@ -4746,8 +4746,10 @@ else if ((pat[0] == '.' && (vim_ispaths

Re: How can I define a command that can be completed with both var and options?

2010-11-08 Thread Christophe-Marie Duquesne
On Mon, Nov 8, 2010 at 4:33 PM, Christophe-Marie Duquesne wrote: > Hi list, > > Using ":command", I can define a custom command that can be completed > with variables names: > :com -nargs=* -complete=var Foo call foo() > which will let me complete :Foo from already defined variables. > > I can als