[CentOS] Vim scripting - cursor motion

Sat Jun 11 16:08:04 UTC 2011
Alain Péan <alain.pean at lpp.polytechnique.fr>

Le 11/06/2011 17:56, Les Mikesell a écrit :
> On 6/11/11 4:03 AM, Jussi Hirvi wrote:
>> So this was my first-ever vim script. So far I am not convinced about
>> vim scripting (ok, I was warned, too)... Test cycle is slow (modify
>> script, quit the realfile, open realfile again with vim -s script).
>> Verbal error messages would be useful. There is supposed to be
>> "integrated debugger". I would like to know more.
> I'd still recommend learning to do it in perl as being likely faster and more
> generally useful, especially if the sql db you mentioned can be accessed
> directly. The regeps will be approximately the same and it is easy to find perl
> example code for DBI operations and manipulating files.  And unlike working in
> shell/awk/editors, you very seldom find an operation that perl can't do itself
> so it often ends up simpler than the shell wrapper you need for other tools.
>

I hope not to begin a flame war, but I would recommend Python. It can do 
the same things as Perl (regexp ansd so on), but is easier and faster to 
learn, and the code is also much more readeable...

Alain