Re: replace VimScript

2007-04-25 Thread A.J.Mechelynck
Robert Lee wrote: Nikolai Weibull wrote: On 4/24/07, Gregory Seidman [EMAIL PROTECTED] wrote: In fact, what I'm asking it to do currently rarely takes much time, but it could be really nice to ask it to do a lot more and still not pay a huge time or memory penalty. What

Re: wish: allow a: in the function def

2007-04-25 Thread Spencer Collyer
On Mon, 23 Apr 2007 21:10:20 -0500, Robert Lee wrote: Counterwish #2: Dump VimScript and replace it with EMCAScript (maybe using SpiderMonkey) so that people don't need to learn a new language just to change the color scheme or keyboard mappings. Yes, this will break backwards

Re: wish: allow a: in the function def

2007-04-25 Thread Spencer Collyer
On Wed, 25 Apr 2007 03:02:39 +0200, Nikolai Weibull wrote: On 4/24/07, Andy Wokula [EMAIL PROTECTED] wrote: As long as function arguments are read-only, it is good to have the a: modifier. In fact, why are they read-only, although call is by value? Yes, that's the reason for the a:

Re: Vim's ole functionality

2007-04-25 Thread Sebastian Menge
Am Dienstag, den 24.04.2007, 16:46 +0530 schrieb Nageshwar M: I tried all the options I checked :version and there is this line with OLE support. I tried to run the application from python as said in documentation and its working fine there. But from java with swt library I'm getting the same

Re: wish: allow a: in the function def

2007-04-25 Thread Nikolai Weibull
On 4/25/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: Yes, that's the reason for the a: modifier. And yes, why are they read-only?VimScript isn't a functionaly programming language. Variables are mutable; arguments should be to. Why? Vim is a good programming

Re: replace VimScript

2007-04-25 Thread Nikolai Weibull
On 4/25/07, Robert Lee [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: The only question that is really relevant here is: why it isn't enough with having an ECMAScript extension instead of having it replace VimScript? The following arguments have been given: 1. Because people wouldn't

Re: [PATCH] Determining whether a window used :lcd

2007-04-25 Thread Nikolai Weibull
On 4/24/07, Bob Hiestand [EMAIL PROTECTED] wrote: On 4/23/07, Nikolai Weibull [EMAIL PROTECTED] wrote: The attached patch very simply implements the following from the todo: Wait! I have a comment! Isn't this todo just a subset of 6 Add :cdprev: go back to the previous directory. Need

Re: wish: allow a: in the function def

2007-04-25 Thread Taylor Venable
On Mon, 23 Apr 2007 21:10:20 -0500 Robert Lee [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 4/23/07, Yakov Lerner [EMAIL PROTECTED] wrote: wish: allow a: in the function definition line: function foo(a:line1, a:line2) This is currently not allowed. But it seems logical to

Re: wish: allow a: in the function def

2007-04-25 Thread Marc Weber
So that the name is consistent everywhere. Makes it much easier to search. I would appreciate this addition, too. Example function! Test(param) echo a:param endfunction When you see param and want to know where it is used, all you have to do is pressing * (using set hlsearch or a plugin

Re: wish: allow a: in the function def

2007-04-25 Thread Marc Weber
So maybe one could make vimscript search a variable foo as l:foo, a:foo, (maybe also: w:foo, b:foo), s:foo, g:foo, and then throw an undefined variable name error if none exists. Or so. No. I don't want to go back to VB without using Option Explicit ;) Don't let vim find some value

Re: [PATCH] Determining whether a window used :lcd

2007-04-25 Thread Bob Hiestand
On 4/25/07, Nikolai Weibull [EMAIL PROTECTED] wrote: Not at all. This patch merely exposes some information about the current cd/lcd functionality. It does not provide new directory changing stack capability. You misunderstand. Isn't the functionality requested in your todo entry just a

RE: wish: allow a: in the function def

2007-04-25 Thread Halim, Salman
I uploaded GetVar a long long time ago to vim.sf.net (initially in 2002, updated for Vim 7 in 2006) that basically is called with the name of a variable and an optional default value. It checks w:, b:, t:, and finally g: before returning the specified default value (default default value is -1).

Re: [PATCH] Determining whether a window used :lcd

2007-04-25 Thread Nikolai Weibull
On 4/25/07, Bob Hiestand [EMAIL PROTECTED] wrote: On 4/25/07, Nikolai Weibull [EMAIL PROTECTED] wrote: Not at all. This patch merely exposes some information about the current cd/lcd functionality. It does not provide new directory changing stack capability. You misunderstand. Isn't

Re: Vim's ole functionality

2007-04-25 Thread Nageshwar
I am sending you the code that I wrote to start a ole window.The following code tries to start the application in a separate window. ( To run this code as an application we need to have swt library ) import org.eclipse.swt.SWT; import org.eclipse.swt.layout.FillLayout; import

if_spidermonkey

2007-04-25 Thread Yukihiro Nakadaira
Hi, all. I have a patch to add SpiderMonkey interface to Vim. This is not well tested and have only few features. But someone is interested in this. (This is not proposal to add SpiderMonkey interface to Vim) http://yukihiro.nakadaira.googlepages.com/if_spidermonkey.diff Usage: (On Windows)

Re: replace VimScript

2007-04-25 Thread Ilya Sher
Nikolai Weibull wrote: On 4/24/07, A.J.Mechelynck [EMAIL PROTECTED] wrote: Nikolai Weibull wrote: On 4/24/07, Ilya Sher [EMAIL PROTECTED] wrote: [snip] I mean, seriously, it's a lot more intuitive to write Vim.options['formatoptions'] = Vim.options['formatoptions'].replace('t', )

Re: [PATCH] Determining whether a window used :lcd

2007-04-25 Thread Bob Hiestand
On 4/25/07, Nikolai Weibull [EMAIL PROTECTED] wrote: OK, I guess then I don't understand your todo entry and Yakov's need for it. I should clarify, it is my need, and I have no idea who added the todo. I found it while trying to discern if the functionality I needed was provided already.