On Thu, Sep 15, 2011 at 10:48 AM, Kerneels Roos wrote:
> NETBEANS PROTOCOL:
> I've made some experiments with the netbeans protocol interfacing vim
> provides when started with the -nb flag or the :nbstart command inside a
> running instance.
>
> On win32 at least the -nb command line option with the format
> -nb=connectionfile doesn't seem to work -- doesn't seem to read the
> connectionfile which contains host, port and auth details. Anyone else could
> test this please (see simple Java socket server attached).


>From the netbeans source code, it seems that the connectionfile should
be written with a unix 'fileformat' (newline terminated, no 'crlf'). I
have never used the '-nb={fname}' command line parameter, but the
'-nb:{hostname}:{addr}:{password}' works just fine on Windows.


> The :nbstart command from inside a running vim instance was more successful
> and started sending events through to the java TCP socket server in the
> netbeans vim interfacing protocol version 2.5 as described in :he netbeans
> (vim docs). Main problem here is that the events are far to few -- need
> notifications of cursor movement, text change, error and other vim messages
> and possibly more events.


You could use the Focus and Cursor autocommand events to report the
cursor position with the ':nbkey' command (the 'nbkey' command can be
used to send any text over the netbeans socket as a 'keyCommand' event
and as a 'keyAtPos' event). Buffer text changes are reported by
netbeans with the 'insert' and 'remove' events.


-- 
Xavier

Les Chemins de Lokoti: http://lokoti.alwaysdata.net

-- 
You received this message from the "vim_dev" 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

Raspunde prin e-mail lui