Here is an updated version, with the fixes included (spaces around 
clientserver, small typos).

        Philippe

Ilya Bobir wrote:
> Philippe Fremy wrote:
>> Ilya Bobir wrote:
>>
>>   
>>> Philippe Fremy wrote:
>>>     
>>>> [...]
>>>> For sending key strokes to Vim or for evaluating functions in Vim, you must
>>>> use the|clientserver|interface.
>>>>   
>>>>       
>>> use the |clientserver| interface.
>>>     
>> When shown in the help file, the | is not visible, so it looks normal.
>>   
> 
> That was exactly my first thought, but then I looked through the file 
> looking for other keywords.  It appears that all of them use extra 
> spaces around a keyword.
> 
> > 
> 


--~--~---------~--~----~------------~-------~--~----~
You received this message from the "vim_dev" maillist.
For more information, visit http://www.vim.org/maillist.php
-~----------~----~----~----~------~----~------~--~---

*netbeans.txt*  For Vim version 7.1.  Last change: 2008 Apr 01


                  VIM REFERENCE MANUAL    by Gordon Prieur


Vim Netbeans Protocol: a socket interface for Vim integration into an IDE.

                                                        *socket-interface*
                                                        *netbeans*
                                                        *netbeans-support*

1. Introduction                                         |netbeans-intro|
2. Integration features                                 |netbeans-integration|
3. Configuring Vim for NetBeans                         |netbeans-configure|
4. Error Messages                                       |netbeans-messages|
5. Running Vim in NetBeans mode                         |netbeans-run|
6. NetBeans protocol                                    |netbeans-protocol|
7. Hot key                                              |netbeans-hotkey|
8. Known problems                                       |netbeans-problems|
9. Debugging netbeans protocol                          |netbeans-debugging|

{Vi does not have any of these features}
{only available when compiled with the |+netbeans_intg| feature}

==============================================================================
1. Introduction                                         *netbeans-intro*

The Netbeans interface was initially developed to integrate Vim into the
NetBeans java IDE, using the external editor plugin. This NetBeans plugin no 
longer
exists for recent versions of NetBeans but the protocol was developed in such a
way that any IDE can use it to integrate Vim.

The Netbeans protocol of Vim is a text based communication protocol, over a
classical TCP socket. There is no dependency on java or NetBeans. Any language
or environment providing a socket interface can control Vim using this
protocol. There are existing implementation in C, C++, python and java. The
name Netbeans is kept today for historical reasons.

Current projects using the Netbeans protocol of Vim are:
- VimIntegration, description of various projects doing Vim Integration: 
http://www.freehackers.org/VimIntegration
- AGIDE, an IDE for the AAP project, written in python: http://www.a-a-p.org
- Clewn, a gdb integration into Vim, written in C: http://clewn.sourceforge.net/
- VimPlugin, integration of Vim inside Eclipse: 
http://vimplugin.sourceforge.net/wiki/pmwiki.php
- PIDA, IDE written in python integrating Vim: http://pida.co.uk/
- VimWrapper, library to easy Vim integration into IDE: 
http://www.freehackers.org/VimWrapper

Check the specific projets page to see how to use Vim with these projects.

In the rest of this help page, we will use the term "Vim Controller" to
describe the program controlling vim through the Netbean socket interface.

==============================================================================
2. Integration features                                 *netbeans-integration*

The netbeans socket interface of Vim allows to get information from Vim or to 
ask Vim
to perform specific actions:
- get information about buffer: buffer name, cursor position, buffer content,
  ...
- be notified when buffer are open or closed
- be notified of how the buffer content is modified
- load and save files
- modify the buffer content
- installing special key bindings
- raise the window, control the window geometry

For sending key strokes to Vim or for evaluating functions in Vim, you must
use the |clientserver| interface.


==============================================================================
3. Configuring Vim for NetBeans                         *netbeans-configure*

For more help installing vim, please read |usr_90.txt| in the Vim User Manual.


On Unix:
--------

When running configure without arguments the Netbeans interface should be
included.  That is, if the configure check to find out if your system supports
the required features succeeds.

In case you do not want the NetBeans interface you can disable it by
uncommenting a line with "--disable-netbeans" in the Makefile.

Currently, only gvim is supported in this integration as NetBeans does not
have means to supply a terminal emulator for the vim command.  Furthermore,
there is only GUI support for GTK, GNOME, and Motif.

If Motif support is required the user must supply XPM libraries.  See
|workshop-xpm| for details on obtaining the latest version of XPM.


On MS-Windows:
--------------

The Win32 support is now in beta stage.

To use XPM signs on Win32 (e.g. when using with NetBeans) you can compile
XPM by yourself or use precompiled libraries from http://iamphet.nm.ru/misc/
(for MS Visual C++) or http://gnuwin32.sourceforge.net (for MinGW).

Enable debugging:
-----------------

To enable debugging of Vim and of the netbeans protocol, set the following
variables in the Makefile of your platform:
DEBUG = yes 
CFLAGS = -DNBDEBUG

==============================================================================
4. Error Messages                                       *netbeans-messages*

Those error messages are specific to NetBeans socket protocol:

                                                        *E463*
Region is guarded, cannot modify
                The Vim Controller has defined guarded areas in the text,
                which you cannot change.  Also sets the current buffer, if 
necessary.

                                                        *E656*
Writes of unmodified buffers forbidden
                Writes of unmodified buffers that were opened from the
                Vim Controller are not possible.

                                                        *E657*
Partial writes disallowed 
                Partial writes for buffers that were opened from the
                Vim Controller are not allowed.

                                                        *E658*
Connection lost for this buffer
                The Vim Controller has become confused about the state of
                this file.  Rather than risk data corruption, it has severed
                the connection for this file.  Vim will take over
                responsibility for saving changes to this file and the
                Vim Controller will no longer know of these changes.

                                                        *E744*
Read-only file
                Vim normally allows changes to a read-only file and only
                enforces the read-only rule if you try to write the file.
                However, NetBeans does not let you make changes to a file
                which is read-only and becomes confused if vim does this.
                So vim does not allow modifications to files when run with
                in Netbean mode.

==============================================================================
5. Running Vim in NetBeans mode                         *netbeans-run*

Vim must be started with the |-nb| argument.  Three forms can be used, that
differ in the way the information for the connection is specified:

        -nb={fname}                             from a file
        -nb:{hostname}:{addr}:{password}        directly
        -nb                                     from a file or environment

                                                        *E660* *E668*
For security reasons, the best method is to write the information in a file
readable only by the user.  The name of the file can be passed with the
"-nb={fname}" argument or, when "-nb" is used without a parameter, the
environment variable "__NETBEANS_CONINFO".  The file must contain these three
lines, in any order:

        host={hostname}
        port={addr}
        auth={password}

Other lines are ignored.  The caller of Vim is responsible for deleting the
file afterwards.

{hostname} is the name of the machine where NetBeans is running.  When omitted
the environment variable "__NETBEANS_HOST" is used or the default "localhost".

{addr} is the port number for NetBeans.  When omitted the environment variable
"__NETBEANS_SOCKET" is used or the default 3219.

{password} is the password for connecting to NetBeans.  When omitted the
environment variable "__NETBEANS_VIM_PASSWORD" is used or "changeme".

Vim will initiate a socket connection (client side) to the specified host and
port upon startup. The password will be sent with the AUTH event when the
connection has been established.


==============================================================================
6. NetBeans protocol                                    *netbeans-protocol*

The communication between the Vim Controller and Vim uses plain text
messages.  This protocol was first designed to work with the external editor
module of NetBeans.  Later it was extended to work with Agide (A-A-P GUI IDE,
see http://www.a-a-p.org) and other IDE. The extensions are marked with
"version 2.1".

Version 2.2 of the protocol has several minor changes which should only affect
NetBeans users (ie, not Agide users).  However, a bug was fixed which could
cause confusion.  The netbeans_saved() function sent a "save" protocol
command.  In protocol version 2.1 and earlier this was incorrectly interpreted
as a notification that a write had taken place.  In reality, it told NetBeans
to save the file so multiple writes were being done.  This caused various
problems and has been fixed in 2.2.  To decrease the likelihood of this
confusion happening again, netbeans_saved() has been renamed to
netbeans_save_buffer().

We are now at version 2.4.  For the differences between 2.3 and 2.4 search for
"2.4" below.

The messages are currently sent over a socket.  Since the messages are in
plain UTF-8 text this protocol could also be used with any other communication
mechanism.

6.1 Kinds of messages           |nb-messages|
6.2 Terms                       |nb-terms|
6.3 Commands                    |nb-commands|
6.4 Functions and Replies       |nb-functions|
6.5 Events                      |nb-events|
6.6 Special messages            |nb-special|
6.7 Protocol errors             |nb-protocol_errors|


6.1 Kinds of messages                                   *nb_messages*

There are four kinds of messages:

kind            direction       comment ~
Command         IDE -> editor   no reply necessary
Function        IDE -> editor   editor must send back a reply
Reply           editor -> IDE   only in response to a Function
Event           editor -> IDE   no reply necessary

The messages are sent as a single line with a terminating newline character.
Arguments are separated by a single space.  The first item of the message
depends on the kind of message:

kind            first item              example ~
Command         bufID:name!seqno        11:showBalloon!123 "text"
Function        bufID:name/seqno        11:getLength/123
Reply           seqno                   123 5000
Event           bufID:name=seqno        11:keyCommand=123 "S-F2"



6.2 Terms                                               *nb-terms*

bufID           Buffer number.  A message may be either for a specific buffer
                or generic.  Generic messages use a bufID of zero.  NOTE: this
                buffer ID is assigned by the IDE, it is not Vim's buffer
                number.  The bufID must be a sequentially rising number,
                starting at one.

seqno           The IDE uses a sequence number for Commands and Functions.  A
                Reply must use the sequence number of the Function that it is
                associated with.  A zero sequence number can be used for
                Events (the seqno of the last received Command or Function can
                also be used).

string          Argument in double quotes.  Text is in UTF-8 encoding.  This
                means ASCII is passed as-is.  Special characters are
                represented with a backslash:
                        \"      double quote
                        \n      newline
                        \r      carriage-return
                        \t      tab (optional, also works literally)
                        \\      backslash
                NUL bytes are not allowed!

boolean         Argument with two possible values:
                        T       true
                        F       false

number          Argument with a decimal number.

optnum          Argument with either a decimal number or "none" (without the
                quotes).

offset          A number argument that indicates a byte position in a buffer.
                The first byte has offset zero.  Line breaks are counted for
                how they appear in the file (CR/LF counts for two bytes).
                Note that a multi-byte character is counted for the number of
                bytes it takes.

lnum/col        Argument with a line number and column number position.  The
                line number starts with one, the column is the byte position,
                starting with zero.  Note that a multi-byte character counts
                for several columns.

pathname        String argument: file name with full path.


6.3 Commands                                            *nb-commands*

actionMenuItem  Not implemented.

actionSensitivity
                Not implemented.

addAnno serNum typeNum off len
                Place an annotation in this buffer.
                Arguments:
                   serNum       number  serial number of this placed
                                        annotation, used to be able to remove
                                        it
                   typeNum      number  sequence number of the annotation
                                        defined with defineAnnoType for this
                                        buffer
                   off          number  offset where annotation is to be placed
                   len          number  not used
                In version 2.1 "lnum/col" can be used instead of "off".

balloonResult text
                Not implemented.

close           Close the buffer.  This leaves us without current buffer, very
                dangerous to use!

create          Creates a buffer without a name.  Replaces the current buffer
                (it's hidden when it was changed).
                The Vim Controller should use this as the first command for a 
file that is
                being opened.  The sequence of commands could be:
                        create
                        setCaretListener        (ignored)
                        setModified             (no effect)
                        setContentType          (ignored)
                        startDocumentListen
                        setTitle
                        setFullName

defineAnnoType typeNum typeName tooltip glyphFile fg bg
                Define a type of annotation for this buffer.
                Arguments:
                   typeNum      number  sequence number (not really used)
                   typeName     string  name that identifies this annotation
                   tooltip      string  not used
                   glyphFile    string  name of icon file
                   fg           optnum  foreground color for line highlighting
                   bg           optnum  background color for line highlighting
                Vim will define a sign for the annotation.
                When both "fg" and "bg" are "none" no line highlighting is
                used (new in version 2.1).
                When "glyphFile" is empty, no text sign is used (new in
                version 2.1).
                When "glyphFile" is one or two characters long, a text sign is
                defined (new in version 2.1).
                Note: the annotations will be defined in sequence, and the
                sequence number is later used with addAnno.

editFile pathname
                Set the name for the buffer and edit the file "pathname", a
                string argument.
                Normal way for the IDE to tell the editor to edit a file.  

                You must set a bufId different of 0 with this command to
                assign a bufId to the buffer. It will trigger an event
                fileOpened with a bufId of 0 but the buffer has been assigned.

                If the IDE is going to pass the file text to the editor use 
these
                commands instead:
                        setFullName
                        insert
                        initDone
                New in version 2.1.

enableBalloonEval
                Not implemented.

endAtomic       End an atomic operation.  The changes between "startAtomic"
                and "endAtomic" can be undone as one operation.  But it's not
                implemented yet.  Redraw when necessary.

guard off len
                Mark an area in the buffer as guarded.  This means it cannot
                be edited.  "off" and "len" are numbers and specify the text
                to be guarded.

initDone        Mark the buffer as ready for use.  Implicitly makes the buffer
                the current buffer.  Fires the BufReadPost autocommand event.

insertDone
                Sent by Vim Controller to tell vim an initial file insert is 
done.
                This triggers a read message being printed.  Prior to version
                2.3, no read messages were displayed after opening a file.
                New in version 2.3.

moveAnnoToFront serNum
                Not implemented.

netbeansBuffer isNetbeansBuffer
                If "isNetbeansBuffer" is "T" then this buffer is ``owned'' by
                NetBeans.
                New in version 2.2.

putBufferNumber pathname
                Associate a buffer number with the Vim buffer by the name
                "pathname", a string argument.  To be used when the editor
                reported editing another file to the IDE and the IDE needs to
                tell the editor what buffer number it will use for this file.
                Also marks the buffer as initialized.
                New in version 2.1.

raise           Bring the editor to the foreground.
                New in version 2.1.

removeAnno serNum
                Remove a previously place annotation for this buffer.
                "serNum" is the same number used in addAnno.

save            Save the buffer when it was modified.  The other side of the
                interface is expected to write the buffer and invoke
                "setModified" to reset the "changed" flag of the buffer.
                The writing is skipped when one of these conditions is true:
                - 'write' is not set
                - the buffer is read-only
                - the buffer does not have a file name
                - 'buftype' disallows writing
                New in version 2.2.

saveDone
                Sent by Vim Controller to tell vim a save is done.  This 
triggers
                a save message being printed.  Prior to version 2.3, no save
                messages were displayed after a save.
                New in version 2.3.

setAsUser       Not implemented.

setBufferNumber pathname
                Associate a buffer number with Vim buffer by the name
                "pathname".  To be used when the editor reported editing
                another file to the IDE and the IDE needs to tell the editor
                what buffer number it will use for this file.
                Has the side effect of making the buffer the current buffer.
                See "putBufferNumber" for a more useful command.

setContentType
                Not implemented.

setDot off      Make the buffer the current buffer and set the cursor at the
                specified position.  If the buffer is open in another window
                than make that window the current window.
                If there are folds they are opened to make the cursor line
                visible.
                In version 2.1 "lnum/col" can be used instead of "off".

setExitDelay seconds
                Set the delay for exiting to "seconds", a number.
                This delay is used to give the IDE a chance to handle things
                before really exiting.  The default delay is two seconds.
                New in version 2.1.
                Obsolete in version 2.3.

setFullName pathname
                Set the file name to be used for a buffer to "pathname", a
                string argument.
                Used when the IDE wants to edit a file under control of the
                IDE.  This makes the buffer the current buffer, but does not
                read the file.  "insert" commands will be used next to set the
                contents.

setLocAndSize   Not implemented.

setMark         Not implemented.

setModified modified
                When the boolean argument "modified" is "T" mark the buffer as
                modified, when it is "F" mark it as unmodified.

setModtime time
                Update a buffers modification time after the file has been
                saved directly by the Vim Controller.
                New in version 2.3.

setReadOnly
                Set a file as readonly
                Implemented in verion 2.3.

setStyle        Not implemented.

setTitle name
                Set the title for the buffer to "name", a string argument.
                The title is only used for the Vim Controller functions, not by 
Vim.

setVisible visible
                When the boolean argument "visible" is "T", goto the buffer.
                The "F" argument does nothing.

showBalloon text
                Show a balloon (popup window) at the mouse pointer position,
                containing "text", a string argument.  The balloon should
                disappear when the mouse is moved more than a few pixels.
                New in version 2.1.

specialKeys
                Map a set of keys (mostly function keys) to be passed back
                to the Vim Controller for processing.  This lets regular IDE 
hotkeys be
                used from vim.
                Implemented in version 2.3.

startAtomic     Begin an atomic operation.  The screen will not be updated
                until "endAtomic" is given.

startCaretListen
                Not implemented.

startDocumentListen
                Mark the buffer to report changes to the IDE with the
                "insert" and "remove" events.  The default is to report
                changes.

stopCaretListen
                Not implemented.

stopDocumentListen
                Mark the buffer to stop reporting changes to the IDE.
                Opposite of startDocumentListen.
                NOTE: if "netbeansBuffer" was used to mark this buffer as a
                NetBeans buffer, then the buffer is deleted in Vim.  This is
                for compatibility with Sun Studio 10.

unguard off len
                Opposite of "guard", remove guarding for a text area.
                Also sets the current buffer, if necessary.

version         Not implemented.


6.4 Functions and Replies                               *nb-functions*

getDot          Not implemented.

getCursor       Return the current buffer and cursor position.
                The reply is:
                        seqno bufID lnum col off
                seqno = sequence number of the function
                bufID = buffer ID of the current buffer (if this is unknown -1
                        is used)
                lnum  = line number of the cursor (first line is one)
                col   = column number of the cursor (in bytes, zero based)
                off   = offset of the cursor in the buffer (in bytes)
                New in version 2.1.

getLength       Return the length of the buffer in bytes.
                Reply example for a buffer with 5000 bytes:
                        123 5000
                TODO: explain use of partial line.

getMark         Not implemented.

getAnno serNum
                Return the line number of the annotation in the buffer.
                Argument:
                        serNum          serial number of this placed annotation
                The reply is:
                        123 lnum        line number of the annotation
                        123 0           invalid annotation serial number
                New in version 2.4.

getModified     When a buffer is specified: Return zero if the buffer does not
                have changes, one if it does have changes.
                When no buffer is specified (buffer number zero): Return the
                number of buffers with changes.  When the result is zero it's
                safe to tell Vim to exit.
                New in version 2.1.

getText         Return the contents of the buffer as a string.
                Reply example for a buffer with two lines
                        123 "first line\nsecond line\n"
                NOTE: docs indicate an offset and length argument, but this is
                not implemented.

insert off text
                Insert "text" before position "off".  "text" is a string
                argument, "off" a number.
                "text" should have a "\n" (newline) at the end of each line.
                Or "\r\n" when 'fileformat' is "dos".  When using "insert" in
                an empty buffer Vim will set 'fileformat' accordingly.
                When "off" points to the start of a line the text is inserted
                above this line.  Thus when "off" is zero lines are inserted
                before the first line.
                When "off" points after the start of a line, possibly on the
                NUL at the end of a line, the first line of text is appended
                to this line.  Further lines come below it.
                Possible replies:
                        123             no problem
                        123 !message    failed
                Note that the message in the reply is not quoted.
                Also sets the current buffer, if necessary.
                Does not move the cursor to the changed text.
                Resets undo information.

remove off length
                Delete "length" bytes of text at position "off".  Both
                arguments are numbers.
                Possible replies:
                        123             no problem
                        123 !message    failed
                Note that the message in the reply is not quoted.
                Also sets the current buffer, if necessary.

saveAndExit     Perform the equivalent of closing Vim: ":confirm qall".
                If there are no changed files or the user does not cancel the
                operation Vim exits and no result is sent back.  The IDE can
                consider closing the connection as a successful result.
                If the user cancels the operation the number of modified
                buffers that remains is returned and Vim does not exit.
                New in version 2.1.


6.5 Events                                              *nb-events*

balloonEval off len type
                The mouse pointer rests on text for a short while.  When "len"
                is zero, there is no selection and the pointer is at position
                "off".  When "len" is non-zero the text from position "off" to
                "off" + "len" is selected.
                Only sent after "enableBalloonEval" was used for this buffer.
                "type" is not yet defined.
                Not implemented yet.

balloonText text
                Used when 'ballooneval' is set and the mouse pointer rests on
                some text for a moment.  "text" is a string, the text under
                the mouse pointer.
                New in version 2.1.

buttonRelease button lnum col
                Report which button was pressed and the location of the cursor
                at the time of the release.  Only for buffers that are owned
                by the Vim Controller.  This event is not sent if the button was
                released while the mouse was in the status line or in a
                separator line.  If col is less than 1 the button release was
                in the sign area.
                New in version 2.2.

disconnect
                Tell the Vim Controller that vim is exiting and not to try and 
read or
                write more commands.
                New in version 2.3.

fileClosed      Not implemented.

fileModified    Not implemented.

fileOpened pathname open modified
                A file was opened by the user.
                Arguments:
                   pathname     string    name of the file
                   open         boolean   always "T"
                   modified     boolean   always "F"

geometry cols rows x y
                Report the size and position of the editor window.
                Arguments:
                   cols         number    number of text columns
                   rows         number    number of text rows
                   x            number    pixel position on screen
                   y            number    pixel position on screen
                Only works for Motif.

insert off text
                Text "text" has been inserted in Vim at position "off".
                Only fired when enabled, see "startDocumentListen".

invokeAction    Not implemented.

keyCommand keyName
                Reports a special key being pressed with name "keyName", which
                is a string.
                Supported key names:
                        F1              function key 1
                        F2              function key 2
                        ...
                        F12             function key 12

                        ' '             space (without the quotes)
                        !               exclamation mark
                        ...             any other ASCII printable character
                        ~               tilde

                        X               any unrecognized key

                The key may be prepended by "C", "S" and/or "M" for Control,
                Shift and Meta (Alt) modifiers.  If there is a modifier a dash
                is used to separate it from the key name.  For example:
                "C-F2".
                ASCII characters are new in version 2.1.

keyAtPos keyName lnum/col
                Like "keyCommand" and also report the line number and column
                of the cursor.
                New in version 2.1.

killed          A file was closed by the user.  Only for files that have been
                assigned a number by the IDE.

newDotAndMark off off
                Reports the position of the cursor being at "off" bytes into
                the buffer.  Only sent just before a "keyCommand" event.

quit            Not implemented.

remove off len
                Text was deleted in Vim at position "off" with byte length
                "len".
                Only fired when enabled, see "startDocumentListen".

revert          Not implemented.

save            The buffer has been saved and is now unmodified.
                Only fired when enabled, see "startDocumentListen".

startupDone     The editor has finished its startup work and is ready for
                editing files.
                New in version 2.1.

unmodified      The buffer is now unmodified.
                Only fired when enabled, see "startDocumentListen".

version vers    Report the version of the interface implementation.  Vim
                reports "2.4" (including the quotes).


6.6 Special messages                                    *nb-special*

These messages do not follow the style of the messages above.  They are
terminated by a newline character.

ACCEPT          Not used.

AUTH password   editor -> IDE: First message that the editor sends to the IDE.
                Must contain the password for the socket server, as specified
                with the |-nb| argument.  No quotes are used!

DISCONNECT      IDE -> editor: break the connection.  The editor will exit.
                The IDE must only send this message when there are no unsaved
                changes!

DETACH          IDE -> editor: break the connection without exiting the
                editor.  Used when the IDE exits without bringing down the
                editor as well.
                New in version 2.1.

REJECT          Not used.


6.7 Protocol errors                                     *nb-protocol_errors*

These errors occur when a message violates the protocol:
*E627* *E628* *E629* *E630* *E631* *E632* *E633* *E634* *E635* *E636*
*E637* *E638* *E639* *E640* *E641* *E642* *E643* *E644* *E645* *E646*
*E647* *E648* *E649* *E650* *E651* *E652* *E653* *E654*

==============================================================================
7. Hot key                                              *netbeans-hotkey*
                                                        *:nbkey*

:nbkey key                      Pass the key to the external entity for 
processing

When a hot-key has been installed with the specialKeys command, this command
can be used to generate a hotkey messages to the Vim Controller. The events
newDotAndMark, keyCommand and keyAtPos are generated (in this order).

==============================================================================
8. Known problems                                       *netbeans-problems*

NUL bytes are not possible.  For editor -> IDE they will appear as NL
characters.  For IDE -> editor they cannot be inserted.

==============================================================================
9. Debugging netbeans protocol                          *netbeans-debugging*

To debug the vim protocol, you must first compile vim with debugging support
and netbeans debugging support.  See |netbeans-configure| for instructions
about Vim compiling and how to enable debug support.

When running Vim, set the following environement variables:

    export SPRO_GVIM_DEBUG=netbeans.log
    export SPRO_GVIM_DLEVEL=0xffffffff

Vim will then log all the incoming and outgoing messages of the netbeans
protocol to the file netbeans.log .

The content of netbeans.log after a session looks like this:
Tue May 20 17:19:27 2008
EVT: 0:startupDone=0
CMD 1: (1) create
CMD 2: (1) setTitle "testfile1.txt"
CMD 3: (1) setFullName "testfile1.txt"
EVT(suppressed): 1:remove=3 0 -1
EVT: 1:fileOpened=0 
"d:\\work\\vimWrapper\\vimWrapper2\\pyvimwrapper\\tests\\testfile1.txt" T F
CMD 4: (1) initDone
FUN 5: (0) getCursor
REP 5: 1 1 0 0
CMD 6: (2) create
CMD 7: (2) setTitle "testfile2.txt"
CMD 8: (2) setFullName "testfile2.txt"
EVT(suppressed): 2:remove=8 0 -1
EVT: 2:fileOpened=0 
"d:\\work\\vimWrapper\\vimWrapper2\\pyvimwrapper\\tests\\testfile2.txt" T F
CMD 9: (2) initDone





 vim:tw=78:ts=8:ft=help:norl:

Raspunde prin e-mail lui