On Tue, Nov 15, 2011 at 11:34 AM, Kerneels Roos wrote:
>
> The Focus and Cursor AutoCommands looks great for this purpose, but when I
> try the ':nbkey' command to try and send something to the server it only
> keeps on sending the same line:
> 0:fileOpened=0 "C:\\Visual Studio Projects\\...path to the file
> ...file-that-is-open" T F


The current buffer, at the time the ':nbkey' command is issued, must
be a netbeans buffer (must have a 'bufID', registered with
'putBufferNumber').

Otherwise the buffer is unknown, and the keycommand is postponed
(queued) until the next 'putBufferNumber' command when the
'keyCommand' and 'keyAtPos' commands are sent for all postponed
keycommands. Note that there was a bug in the postponing
implementation that prevented it to work correctly, before vim 7.3.

Note that it makes sense that the buffer should be known, since the
cursor position is reported in 'keyAtPos'.


> Any help or suggestions or more and better docs?


The best is setting up Vim so as to log netbeans protocol data
units (see ':help netbeans-debugging').
In the above test, you would have got the following message:

    "got keycommand for non-NetBeans buffer, opening..."


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