On Friday 02 December 2005 01:14 am, Tracy R Reed wrote:
> boblq wrote:
> > So what do you call practical? Do you have
> > another means of extension that you think
> > is easier/better? Seriously.
>
> Practical is something I can expect a reasonable return on investment
> for. To extend a program using the source written in something like C
> when the program was not designed to be extensible can be quite a task.
> Much easier, more practical, and a more worthwhile time investment, if
> you can just whip up some much simpler elisp or python or whatever
> extension language the program uses and the exported API's.

OK, so there is the required extension to vi, an API,
that will allow one to easily interface to some simple 
scripting language ... 

But wait. vim already has a scripting language. It is 
called VimScript. You don't have to learn C or study
the admittedly gory C code. See
http://vimdoc.sourceforge.net/htmldoc/usr_41.html

and there are over a 1000 scripts available. See
http://www.vim.org/scripts/index.php

Since most of the words in vimscript are just vi
commands ... or conventional programing constructs
like if else endif, while endwhile, etc. If you know vi
this is not a difficult language to pick up. 

I have never used vimscript ... but the next time 
that I want something in vim I don't have I may 
just give vimscript a try. 

Good exchange,

BobLQ


-- 
[email protected]
http://www.kernel-panic.org/cgi-bin/mailman/listinfo/kplug-list

Reply via email to