Hello!

I'm trying to develop interface from vim to erlang -- for embedding
debugging, competition and etc functions, which is much more easy to do
natively in that language, than trying to emulate erlang parser in vim.

For now I've managed to create if_erlang extension with definition of
functions which I need.

One of them is a

void ex_erlconnect(exarg_T *eap)

if should take 2 arguments -- hostname and password

Now I'm concerned how I should parse eap->arg to allow passing there,
say, variables -- because I with to allow both
erlconnect 'localhost', 'foobar'

and
let host='localhost'
erlconnect host, 'foobar'

syntaxes.

Are there any building function to deal with command line parsing? or
not? Are there any documentation -- I've found none about this subject
-- i.e. how to extend vim and write bindings to another languages.

I would like also ask how to track network socket activity?
The only place, where I've found vim is doing some network exchange is
an netbeans.c. After examining code I was surprised, that I should have
gtk or X library to make callback if data is available on socket, and
not a signal processing (say in SIGIO handler). In general I would like
to use that extension without having GUI -- in console vim too.

How would you recommend to write network-related part?


If there is any documentation -- it's enough to provide link there, I'll
read it :)

Thanks in advance.

/Gaspar


-- 
Gaspar Chilingarov

System Administrator,
Network security consulting

t +37493 419763 (mob)
i 63174784
e [EMAIL PROTECTED]

Reply via email to