On Jan 12, 2:58 am, Marc Weber <[email protected]> wrote:
> > I think the main proponents of vim's syntax are a small minority of
> > those who have mastery of such arcana.  That doesn't bode well for
> > usability and convenience.
>
> I totally agree on this.
>
> I'd like to throw away
> - VimL (using JavaScript instead)
> - the regex (using perl's instead)
>
> Why JavaScript? v8 jits, thus its blazing fast. Every developer is doing
> some kind of web development thus known JavaScript.http://altjs.org/shows how 
> many languages can be complied down to JS.
> This includes Ruby, Python, HaXe, Java, Scala, SML, ... (Note: I don't say it
> makes sense to use them all)
>

There are plenty of developers out there who have not written a single
line of Javascript. I personally have probably written fewer than 100
lines of Javascript in my life.

While it is true that learning VimL is only useful in Vim, whereas
other languages have many uses elsewhere, it is also true that
learning VimL is really just learning Vim. You can use all the same
editing commands you use to interact with the editor, to script it.
That's something fairly unique to Vim and very nice in my opinion. It
makes the entry into scripting much easier. Once you get into it more
and start playing with the more advanced features of VimL, sure, it
takes some effort to learn. But that is equally true for any other
language which could have been used for Vim. And Perl is the only
language aside from C and VimL which I use on a regular basis, so most
of the other languages would be equally useless for me to learn as
VimL.

And, I guess I don't understand why we'd need to throw out VimL to
support another language. Vim already has support for a wide variety
of other languages, which you can drop into with a single Vim command.

As for the original question, of using Perl regular expressions, won't
something like:

:perldo s/pattern/replacement/g

do exactly that?

-- 
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

Reply via email to