blob: 722cec6554e89dced9d1668636b243109d8c4e9a [file] [log] [blame]
Bram Moolenaarbb76f242016-09-12 14:24:39 +02001*netbeans.txt* For Vim version 8.0. Last change: 2016 Jul 15
Bram Moolenaar071d4272004-06-13 20:20:40 +00002
3
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00004 VIM REFERENCE MANUAL by Gordon Prieur et al.
Bram Moolenaar071d4272004-06-13 20:20:40 +00005
6
Bram Moolenaar298b4402016-01-28 22:38:53 +01007 *netbeans* *netbeans-support*
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00008
9Vim NetBeans Protocol: a socket interface for Vim integration into an IDE.
10
Bram Moolenaar071d4272004-06-13 20:20:40 +0000111. Introduction |netbeans-intro|
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000122. Integration features |netbeans-integration|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000133. Configuring Vim for NetBeans |netbeans-configure|
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000144. Error Messages |netbeans-messages|
155. Running Vim in NetBeans mode |netbeans-run|
166. NetBeans protocol |netbeans-protocol|
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200177. NetBeans commands |netbeans-commands|
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000188. Known problems |netbeans-problems|
199. Debugging NetBeans protocol |netbeans-debugging|
2010. NetBeans External Editor
21 10.1. Downloading NetBeans |netbeans-download|
22 10.2. NetBeans Key Bindings |netbeans-keybindings|
23 10.3. Preparing NetBeans for Vim |netbeans-preparation|
24 10.4. Obtaining the External Editor Module |obtaining-exted|
25 10.5. Setting up NetBeans to run with Vim |netbeans-setup|
Bram Moolenaar071d4272004-06-13 20:20:40 +000026
27{Vi does not have any of these features}
28{only available when compiled with the |+netbeans_intg| feature}
29
30==============================================================================
311. Introduction *netbeans-intro*
32
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000033The NetBeans interface was initially developed to integrate Vim into the
34NetBeans Java IDE, using the external editor plugin. This NetBeans plugin no
35longer exists for recent versions of NetBeans but the protocol was developed
36in such a way that any IDE can use it to integrate Vim.
37
38The NetBeans protocol of Vim is a text based communication protocol, over a
39classical TCP socket. There is no dependency on Java or NetBeans. Any language
40or environment providing a socket interface can control Vim using this
41protocol. There are existing implementations in C, C++, Python and Java. The
42name NetBeans is kept today for historical reasons.
43
44Current projects using the NetBeans protocol of Vim are:
45- VimIntegration, description of various projects doing Vim Integration:
46 http://www.freehackers.org/VimIntegration
47- Agide, an IDE for the AAP project, written in Python:
48 http://www.a-a-p.org
49- Clewn, a gdb integration into Vim, written in C:
50 http://clewn.sourceforge.net/
Bram Moolenaarb26e6322010-05-22 21:34:09 +020051- Pyclewn, a gdb integration into Vim, written in Python:
52 http://pyclewn.sourceforge.net/
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000053- VimPlugin, integration of Vim inside Eclipse:
54 http://vimplugin.sourceforge.net/wiki/pmwiki.php
55- PIDA, IDE written in Python integrating Vim:
56 http://pida.co.uk/
57- VimWrapper, library to easy Vim integration into IDE:
58 http://www.freehackers.org/VimWrapper
59
60Check the specific project pages to see how to use Vim with these projects.
61
Bram Moolenaar269f5952016-07-15 22:54:41 +020062An alternative is to use a channel, see |channel|.
63
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000064In the rest of this help page, we will use the term "Vim Controller" to
65describe the program controlling Vim through the NetBeans socket interface.
66
67
68About the NetBeans IDE ~
69
Bram Moolenaar071d4272004-06-13 20:20:40 +000070NetBeans is an open source Integrated Development Environment developed
71jointly by Sun Microsystems, Inc. and the netbeans.org developer community.
72Initially just a Java IDE, NetBeans has had C, C++, and Fortran support added
73in recent releases.
74
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000075For more information visit the main NetBeans web site http://www.netbeans.org.
Bram Moolenaarc236c162008-07-13 17:41:49 +000076The External Editor is now, unfortunately, declared obsolete. See
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000077 http://externaleditor.netbeans.org.
Bram Moolenaar071d4272004-06-13 20:20:40 +000078
79Sun Microsystems, Inc. also ships NetBeans under the name Sun ONE Studio.
80Visit http://www.sun.com for more information regarding the Sun ONE Studio
81product line.
82
83Current releases of NetBeans provide full support for Java and limited support
Bram Moolenaar402d2fe2005-04-15 21:00:38 +000084for C, C++, and Fortran. Current releases of Sun ONE Studio provide full
Bram Moolenaar071d4272004-06-13 20:20:40 +000085support for Java, C, C++, and Fortran.
86
Bram Moolenaar071d4272004-06-13 20:20:40 +000087==============================================================================
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000882. Integration features *netbeans-integration*
Bram Moolenaar071d4272004-06-13 20:20:40 +000089
Bram Moolenaar3577c6f2008-06-24 21:16:56 +000090The NetBeans socket interface of Vim allows to get information from Vim or to
91ask Vim to perform specific actions:
92- get information about buffer: buffer name, cursor position, buffer content,
93 etc.
94- be notified when buffers are open or closed
95- be notified of how the buffer content is modified
96- load and save files
97- modify the buffer content
98- installing special key bindings
99- raise the window, control the window geometry
Bram Moolenaar071d4272004-06-13 20:20:40 +0000100
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000101For sending key strokes to Vim or for evaluating functions in Vim, you must
102use the |clientserver| interface.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000103
Bram Moolenaar071d4272004-06-13 20:20:40 +0000104
105==============================================================================
1063. Configuring Vim for NetBeans *netbeans-configure*
107
Bram Moolenaar06b5d512010-05-22 15:37:44 +0200108For more help about installing Vim, please read |usr_90.txt| in the Vim User
109Manual.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000110
111
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000112On Unix:
113--------
Bram Moolenaar071d4272004-06-13 20:20:40 +0000114
115When running configure without arguments the NetBeans interface should be
116included. That is, if the configure check to find out if your system supports
117the required features succeeds.
118
119In case you do not want the NetBeans interface you can disable it by
120uncommenting a line with "--disable-netbeans" in the Makefile.
121
Bram Moolenaar67c53842010-05-22 18:28:27 +0200122Currently the NetBeans interface is supported by Vim running in a terminal and
Bram Moolenaar6aa8cea2017-06-05 14:44:35 +0200123by gvim when it is run with one of the following GUIs: GTK, GNOME, Windows,
Bram Moolenaar173c9852010-09-29 17:27:01 +0200124Athena and Motif.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000125
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000126If Motif support is required the user must supply XPM libraries. See
Bram Moolenaar071d4272004-06-13 20:20:40 +0000127|workshop-xpm| for details on obtaining the latest version of XPM.
128
129
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000130On MS-Windows:
131--------------
Bram Moolenaar071d4272004-06-13 20:20:40 +0000132
133The Win32 support is now in beta stage.
134
135To use XPM signs on Win32 (e.g. when using with NetBeans) you can compile
136XPM by yourself or use precompiled libraries from http://iamphet.nm.ru/misc/
137(for MS Visual C++) or http://gnuwin32.sourceforge.net (for MinGW).
138
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000139Enable debugging:
140-----------------
Bram Moolenaar071d4272004-06-13 20:20:40 +0000141
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000142To enable debugging of Vim and of the NetBeans protocol, the "NBDEBUG" macro
143needs to be defined. Search in the Makefile of the platform you are using for
144"NBDEBUG" to see what line needs to be uncommented. This effectively adds
145"-DNBDEBUG" to the compile command. Also see |netbeans-debugging|
Bram Moolenaar071d4272004-06-13 20:20:40 +0000146
147==============================================================================
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00001484. Error Messages *netbeans-messages*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000149
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000150These error messages are specific to NetBeans socket protocol:
Bram Moolenaar071d4272004-06-13 20:20:40 +0000151
152 *E463*
153Region is guarded, cannot modify
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000154 The Vim Controller has defined guarded areas in the text,
155 which you cannot change. Also sets the current buffer, if
156 necessary.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000157
Bram Moolenaar67c53842010-05-22 18:28:27 +0200158 *E532*
159The defineAnnoType highlighting color name is too long
160 The maximum length of the "fg" or "bg" color argument in the
161 defineAnnoType command is 32 characters.
162 New in version 2.5.
163
Bram Moolenaar071d4272004-06-13 20:20:40 +0000164 *E656*
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000165Writes of unmodified buffers forbidden
166 Writes of unmodified buffers that were opened from the
167 Vim Controller are not possible.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000168
169 *E657*
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000170Partial writes disallowed
171 Partial writes for buffers that were opened from the
172 Vim Controller are not allowed.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000173
174 *E658*
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000175Connection lost for this buffer
176 The Vim Controller has become confused about the state of
177 this file. Rather than risk data corruption, it has severed
178 the connection for this file. Vim will take over
179 responsibility for saving changes to this file and the
180 Vim Controller will no longer know of these changes.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000181
Bram Moolenaar65c1b012005-01-31 19:02:28 +0000182 *E744*
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000183Read-only file
Bram Moolenaar65c1b012005-01-31 19:02:28 +0000184 Vim normally allows changes to a read-only file and only
185 enforces the read-only rule if you try to write the file.
186 However, NetBeans does not let you make changes to a file
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000187 which is read-only and becomes confused if Vim does this.
188 So Vim does not allow modifications to files when run
189 in NetBeans mode.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000190
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000191==============================================================================
1925. Running Vim in NetBeans mode *netbeans-run*
193
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200194There are two different ways to run Vim in NetBeans mode:
195
Bram Moolenaar9855d6b2010-07-18 14:34:51 +0200196 + an IDE may start Vim with the |-nb| command line argument
197 + NetBeans can be started from within Vim with the |:nbstart| command
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200198
Bram Moolenaare0fa3742016-02-20 15:47:01 +0100199Vim uses a 3 second timeout on trying to make the connection.
200
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200201 *netbeans-parameters*
202Three forms can be used to setup the NetBeans connection parameters.
Bram Moolenaar9855d6b2010-07-18 14:34:51 +0200203When started from the command line, the |-nb| command line argument may be:
Bram Moolenaar071d4272004-06-13 20:20:40 +0000204
205 -nb={fname} from a file
206 -nb:{hostname}:{addr}:{password} directly
207 -nb from a file or environment
208
Bram Moolenaar9855d6b2010-07-18 14:34:51 +0200209When started from within Vim, the |:nbstart| optional argument may be:
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200210
211 ={fname} from a file
212 :{hostname}:{addr}:{password} directly
213 <MISSING ARGUMENT> from a file or environment
214
Bram Moolenaar071d4272004-06-13 20:20:40 +0000215 *E660* *E668*
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200216When NetBeans is started from the command line, for security reasons, the best
217method is to write the information in a file readable only by the user. The
218name of the file can be passed with the "-nb={fname}" argument or, when "-nb"
219is used without a parameter, the environment variable "__NETBEANS_CONINFO".
220The file must contain these three lines, in any order:
Bram Moolenaar071d4272004-06-13 20:20:40 +0000221
222 host={hostname}
223 port={addr}
224 auth={password}
225
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200226Other lines are ignored. The Vim Controller is responsible for deleting the
Bram Moolenaar071d4272004-06-13 20:20:40 +0000227file afterwards.
228
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000229{hostname} is the name of the machine where Vim Controller is running. When
230omitted the environment variable "__NETBEANS_HOST" is used or the default
231"localhost".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000232
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000233{addr} is the port number for the NetBeans interface. When omitted the
234environment variable "__NETBEANS_SOCKET" is used or the default 3219.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000235
236{password} is the password for connecting to NetBeans. When omitted the
237environment variable "__NETBEANS_VIM_PASSWORD" is used or "changeme".
238
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000239Vim will initiate a socket connection (client side) to the specified host and
240port upon startup. The password will be sent with the AUTH event when the
241connection has been established.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000242
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000243
244==============================================================================
2456. NetBeans protocol *netbeans-protocol*
246
247The communication between the Vim Controller and Vim uses plain text
248messages. This protocol was first designed to work with the external editor
249module of NetBeans. Later it was extended to work with Agide (A-A-P GUI IDE,
250see http://www.a-a-p.org) and then with other IDE. The extensions are marked
251with "version 2.1".
Bram Moolenaar071d4272004-06-13 20:20:40 +0000252
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000253Version 2.2 of the protocol has several minor changes which should only affect
254NetBeans users (ie, not Agide users). However, a bug was fixed which could
255cause confusion. The netbeans_saved() function sent a "save" protocol
256command. In protocol version 2.1 and earlier this was incorrectly interpreted
257as a notification that a write had taken place. In reality, it told NetBeans
258to save the file so multiple writes were being done. This caused various
259problems and has been fixed in 2.2. To decrease the likelihood of this
Bram Moolenaar071d4272004-06-13 20:20:40 +0000260confusion happening again, netbeans_saved() has been renamed to
261netbeans_save_buffer().
262
Bram Moolenaar67c53842010-05-22 18:28:27 +0200263We are now at version 2.5. For the differences between 2.4 and 2.5 search for
264"2.5" below.
Bram Moolenaar0fd92892006-03-09 22:27:48 +0000265
Bram Moolenaar071d4272004-06-13 20:20:40 +0000266The messages are currently sent over a socket. Since the messages are in
267plain UTF-8 text this protocol could also be used with any other communication
268mechanism.
269
Bram Moolenaare3cc6d42011-10-20 21:58:34 +0200270Netbeans messages are processed when Vim is idle, waiting for user input.
271When Vim is run in non-interactive mode, for example when running an automated
272test case that sources a Vim script, the idle loop may not be called often
Bram Moolenaarb8ff1fb2012-02-04 21:59:01 +0100273enough. In that case, insert |:sleep| commands in the Vim script. The |:sleep|
Bram Moolenaare3cc6d42011-10-20 21:58:34 +0200274command does invoke Netbeans messages processing.
275
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00002766.1 Kinds of messages |nb-messages|
2776.2 Terms |nb-terms|
2786.3 Commands |nb-commands|
2796.4 Functions and Replies |nb-functions|
2806.5 Events |nb-events|
2816.6 Special messages |nb-special|
2826.7 Protocol errors |nb-protocol_errors|
Bram Moolenaar0fd92892006-03-09 22:27:48 +0000283
284
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00002856.1 Kinds of messages *nb-messages*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000286
287There are four kinds of messages:
288
289kind direction comment ~
290Command IDE -> editor no reply necessary
291Function IDE -> editor editor must send back a reply
292Reply editor -> IDE only in response to a Function
293Event editor -> IDE no reply necessary
294
295The messages are sent as a single line with a terminating newline character.
296Arguments are separated by a single space. The first item of the message
297depends on the kind of message:
298
299kind first item example ~
300Command bufID:name!seqno 11:showBalloon!123 "text"
301Function bufID:name/seqno 11:getLength/123
302Reply seqno 123 5000
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000303Event bufID:name=seqno 11:keyCommand=123 "S-F2"
Bram Moolenaar071d4272004-06-13 20:20:40 +0000304
305
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000306
3076.2 Terms *nb-terms*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000308
309bufID Buffer number. A message may be either for a specific buffer
310 or generic. Generic messages use a bufID of zero. NOTE: this
311 buffer ID is assigned by the IDE, it is not Vim's buffer
312 number. The bufID must be a sequentially rising number,
Bram Moolenaar5837f1f2015-03-21 18:06:14 +0100313 starting at one. When the 'switchbuf' option is set to
314 "usetab" and the "bufID" buffer is not found in the current
315 tab page, the netbeans commands and functions that set this
316 buffer as the current buffer will jump to the first open
317 window that contains this buffer in other tab pages instead of
318 replacing the buffer in the current window.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000319
320seqno The IDE uses a sequence number for Commands and Functions. A
321 Reply must use the sequence number of the Function that it is
322 associated with. A zero sequence number can be used for
323 Events (the seqno of the last received Command or Function can
324 also be used).
325
326string Argument in double quotes. Text is in UTF-8 encoding. This
327 means ASCII is passed as-is. Special characters are
328 represented with a backslash:
329 \" double quote
330 \n newline
331 \r carriage-return
332 \t tab (optional, also works literally)
333 \\ backslash
334 NUL bytes are not allowed!
335
336boolean Argument with two possible values:
337 T true
338 F false
339
340number Argument with a decimal number.
341
Bram Moolenaar67c53842010-05-22 18:28:27 +0200342color Argument with either a decimal number, "none" (without the
343 quotes) or the name of a color (without the quotes) defined
Bram Moolenaar9855d6b2010-07-18 14:34:51 +0200344 both in the color list in |highlight-ctermfg| and in the color
345 list in |gui-colors|.
Bram Moolenaar67c53842010-05-22 18:28:27 +0200346 New in version 2.5.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000347
348offset A number argument that indicates a byte position in a buffer.
349 The first byte has offset zero. Line breaks are counted for
350 how they appear in the file (CR/LF counts for two bytes).
351 Note that a multi-byte character is counted for the number of
352 bytes it takes.
353
354lnum/col Argument with a line number and column number position. The
355 line number starts with one, the column is the byte position,
356 starting with zero. Note that a multi-byte character counts
357 for several columns.
358
359pathname String argument: file name with full path.
360
361
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00003626.3 Commands *nb-commands*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000363
364actionMenuItem Not implemented.
365
366actionSensitivity
367 Not implemented.
368
369addAnno serNum typeNum off len
370 Place an annotation in this buffer.
371 Arguments:
372 serNum number serial number of this placed
373 annotation, used to be able to remove
374 it
375 typeNum number sequence number of the annotation
376 defined with defineAnnoType for this
377 buffer
378 off number offset where annotation is to be placed
379 len number not used
380 In version 2.1 "lnum/col" can be used instead of "off".
381
382balloonResult text
383 Not implemented.
384
385close Close the buffer. This leaves us without current buffer, very
386 dangerous to use!
387
388create Creates a buffer without a name. Replaces the current buffer
389 (it's hidden when it was changed).
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000390 The Vim Controller should use this as the first command for a
391 file that is being opened. The sequence of commands could be:
Bram Moolenaar071d4272004-06-13 20:20:40 +0000392 create
393 setCaretListener (ignored)
394 setModified (no effect)
395 setContentType (ignored)
396 startDocumentListen
397 setTitle
398 setFullName
399
400defineAnnoType typeNum typeName tooltip glyphFile fg bg
401 Define a type of annotation for this buffer.
402 Arguments:
403 typeNum number sequence number (not really used)
404 typeName string name that identifies this annotation
405 tooltip string not used
406 glyphFile string name of icon file
Bram Moolenaar67c53842010-05-22 18:28:27 +0200407 fg color foreground color for line highlighting
408 bg color background color for line highlighting
Bram Moolenaar071d4272004-06-13 20:20:40 +0000409 Vim will define a sign for the annotation.
Bram Moolenaar67c53842010-05-22 18:28:27 +0200410 When color is a number, this is the "#rrggbb" Red, Green and
411 Blue values of the color (see |gui-colors|) and the
412 highlighting is only defined for GVim.
413 When color is a name, this color is defined both for Vim
414 running in a color terminal and for GVim.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000415 When both "fg" and "bg" are "none" no line highlighting is
416 used (new in version 2.1).
417 When "glyphFile" is empty, no text sign is used (new in
418 version 2.1).
419 When "glyphFile" is one or two characters long, a text sign is
420 defined (new in version 2.1).
421 Note: the annotations will be defined in sequence, and the
422 sequence number is later used with addAnno.
423
424editFile pathname
425 Set the name for the buffer and edit the file "pathname", a
426 string argument.
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000427 Normal way for the IDE to tell the editor to edit a file.
428
429 You must set a bufId different of 0 with this command to
430 assign a bufId to the buffer. It will trigger an event
431 fileOpened with a bufId of 0 but the buffer has been assigned.
432
433 If the IDE is going to pass the file text to the editor use
434 these commands instead:
Bram Moolenaar071d4272004-06-13 20:20:40 +0000435 setFullName
436 insert
437 initDone
438 New in version 2.1.
439
440enableBalloonEval
441 Not implemented.
442
443endAtomic End an atomic operation. The changes between "startAtomic"
444 and "endAtomic" can be undone as one operation. But it's not
445 implemented yet. Redraw when necessary.
446
447guard off len
448 Mark an area in the buffer as guarded. This means it cannot
449 be edited. "off" and "len" are numbers and specify the text
450 to be guarded.
451
452initDone Mark the buffer as ready for use. Implicitly makes the buffer
453 the current buffer. Fires the BufReadPost autocommand event.
454
Bram Moolenaar009b2592004-10-24 19:18:58 +0000455insertDone
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000456 Sent by Vim Controller to tell Vim an initial file insert is
457 done. This triggers a read message being printed. Prior to
458 version 2.3, no read messages were displayed after opening a
459 file. New in version 2.3.
Bram Moolenaar009b2592004-10-24 19:18:58 +0000460
Bram Moolenaar071d4272004-06-13 20:20:40 +0000461moveAnnoToFront serNum
462 Not implemented.
463
464netbeansBuffer isNetbeansBuffer
Bram Moolenaarc236c162008-07-13 17:41:49 +0000465 If "isNetbeansBuffer" is "T" then this buffer is "owned" by
Bram Moolenaar071d4272004-06-13 20:20:40 +0000466 NetBeans.
467 New in version 2.2.
468
469putBufferNumber pathname
470 Associate a buffer number with the Vim buffer by the name
471 "pathname", a string argument. To be used when the editor
472 reported editing another file to the IDE and the IDE needs to
473 tell the editor what buffer number it will use for this file.
474 Also marks the buffer as initialized.
475 New in version 2.1.
476
477raise Bring the editor to the foreground.
Bram Moolenaar67c53842010-05-22 18:28:27 +0200478 Only when Vim is run with a GUI.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000479 New in version 2.1.
480
481removeAnno serNum
Bram Moolenaar3a991dd2014-10-02 01:41:41 +0200482 Remove a previously placed annotation for this buffer.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000483 "serNum" is the same number used in addAnno.
484
485save Save the buffer when it was modified. The other side of the
486 interface is expected to write the buffer and invoke
487 "setModified" to reset the "changed" flag of the buffer.
488 The writing is skipped when one of these conditions is true:
489 - 'write' is not set
490 - the buffer is read-only
491 - the buffer does not have a file name
492 - 'buftype' disallows writing
493 New in version 2.2.
494
Bram Moolenaar009b2592004-10-24 19:18:58 +0000495saveDone
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000496 Sent by Vim Controller to tell Vim a save is done. This
497 triggers a save message being printed. Prior to version 2.3,
498 no save messages were displayed after a save.
Bram Moolenaar009b2592004-10-24 19:18:58 +0000499 New in version 2.3.
500
Bram Moolenaar071d4272004-06-13 20:20:40 +0000501setAsUser Not implemented.
502
503setBufferNumber pathname
504 Associate a buffer number with Vim buffer by the name
505 "pathname". To be used when the editor reported editing
506 another file to the IDE and the IDE needs to tell the editor
507 what buffer number it will use for this file.
508 Has the side effect of making the buffer the current buffer.
509 See "putBufferNumber" for a more useful command.
510
511setContentType
512 Not implemented.
513
514setDot off Make the buffer the current buffer and set the cursor at the
Bram Moolenaar8b6144b2006-02-08 09:20:24 +0000515 specified position. If the buffer is open in another window
516 than make that window the current window.
517 If there are folds they are opened to make the cursor line
518 visible.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000519 In version 2.1 "lnum/col" can be used instead of "off".
520
521setExitDelay seconds
522 Set the delay for exiting to "seconds", a number.
523 This delay is used to give the IDE a chance to handle things
524 before really exiting. The default delay is two seconds.
525 New in version 2.1.
Bram Moolenaar009b2592004-10-24 19:18:58 +0000526 Obsolete in version 2.3.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000527
528setFullName pathname
529 Set the file name to be used for a buffer to "pathname", a
530 string argument.
531 Used when the IDE wants to edit a file under control of the
532 IDE. This makes the buffer the current buffer, but does not
533 read the file. "insert" commands will be used next to set the
534 contents.
535
536setLocAndSize Not implemented.
537
538setMark Not implemented.
539
540setModified modified
541 When the boolean argument "modified" is "T" mark the buffer as
542 modified, when it is "F" mark it as unmodified.
543
Bram Moolenaar009b2592004-10-24 19:18:58 +0000544setModtime time
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000545 Update a buffers modification time after the file has been
546 saved directly by the Vim Controller.
Bram Moolenaar009b2592004-10-24 19:18:58 +0000547 New in version 2.3.
548
549setReadOnly
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000550 Set a file as readonly
551 Implemented in version 2.3.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000552
553setStyle Not implemented.
554
555setTitle name
556 Set the title for the buffer to "name", a string argument.
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000557 The title is only used for the Vim Controller functions, not
558 by Vim.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000559
560setVisible visible
561 When the boolean argument "visible" is "T", goto the buffer.
562 The "F" argument does nothing.
563
564showBalloon text
565 Show a balloon (popup window) at the mouse pointer position,
566 containing "text", a string argument. The balloon should
567 disappear when the mouse is moved more than a few pixels.
Bram Moolenaar67c53842010-05-22 18:28:27 +0200568 Only when Vim is run with a GUI.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000569 New in version 2.1.
570
Bram Moolenaar009b2592004-10-24 19:18:58 +0000571specialKeys
572 Map a set of keys (mostly function keys) to be passed back
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000573 to the Vim Controller for processing. This lets regular IDE
574 hotkeys be used from Vim.
Bram Moolenaar009b2592004-10-24 19:18:58 +0000575 Implemented in version 2.3.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000576
577startAtomic Begin an atomic operation. The screen will not be updated
578 until "endAtomic" is given.
579
580startCaretListen
581 Not implemented.
582
583startDocumentListen
584 Mark the buffer to report changes to the IDE with the
585 "insert" and "remove" events. The default is to report
586 changes.
587
588stopCaretListen
589 Not implemented.
590
591stopDocumentListen
592 Mark the buffer to stop reporting changes to the IDE.
593 Opposite of startDocumentListen.
Bram Moolenaar748bf032005-02-02 23:04:36 +0000594 NOTE: if "netbeansBuffer" was used to mark this buffer as a
595 NetBeans buffer, then the buffer is deleted in Vim. This is
596 for compatibility with Sun Studio 10.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000597
598unguard off len
599 Opposite of "guard", remove guarding for a text area.
Bram Moolenaar8b6144b2006-02-08 09:20:24 +0000600 Also sets the current buffer, if necessary.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000601
602version Not implemented.
603
604
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00006056.4 Functions and Replies *nb-functions*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000606
607getDot Not implemented.
608
609getCursor Return the current buffer and cursor position.
610 The reply is:
611 seqno bufID lnum col off
612 seqno = sequence number of the function
613 bufID = buffer ID of the current buffer (if this is unknown -1
614 is used)
615 lnum = line number of the cursor (first line is one)
616 col = column number of the cursor (in bytes, zero based)
617 off = offset of the cursor in the buffer (in bytes)
618 New in version 2.1.
619
620getLength Return the length of the buffer in bytes.
621 Reply example for a buffer with 5000 bytes:
622 123 5000
623 TODO: explain use of partial line.
624
625getMark Not implemented.
626
Bram Moolenaarc65c4912006-11-14 17:29:46 +0000627getAnno serNum
628 Return the line number of the annotation in the buffer.
629 Argument:
630 serNum serial number of this placed annotation
631 The reply is:
632 123 lnum line number of the annotation
633 123 0 invalid annotation serial number
634 New in version 2.4.
635
Bram Moolenaar071d4272004-06-13 20:20:40 +0000636getModified When a buffer is specified: Return zero if the buffer does not
637 have changes, one if it does have changes.
638 When no buffer is specified (buffer number zero): Return the
639 number of buffers with changes. When the result is zero it's
640 safe to tell Vim to exit.
641 New in version 2.1.
642
643getText Return the contents of the buffer as a string.
644 Reply example for a buffer with two lines
645 123 "first line\nsecond line\n"
646 NOTE: docs indicate an offset and length argument, but this is
647 not implemented.
648
649insert off text
650 Insert "text" before position "off". "text" is a string
651 argument, "off" a number.
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000652 "text" should have a "\n" (newline) at the end of each line.
Bram Moolenaar0fd92892006-03-09 22:27:48 +0000653 Or "\r\n" when 'fileformat' is "dos". When using "insert" in
654 an empty buffer Vim will set 'fileformat' accordingly.
655 When "off" points to the start of a line the text is inserted
656 above this line. Thus when "off" is zero lines are inserted
657 before the first line.
658 When "off" points after the start of a line, possibly on the
659 NUL at the end of a line, the first line of text is appended
660 to this line. Further lines come below it.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000661 Possible replies:
662 123 no problem
663 123 !message failed
664 Note that the message in the reply is not quoted.
Bram Moolenaar8b6144b2006-02-08 09:20:24 +0000665 Also sets the current buffer, if necessary.
Bram Moolenaar0fd92892006-03-09 22:27:48 +0000666 Does not move the cursor to the changed text.
667 Resets undo information.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000668
669remove off length
670 Delete "length" bytes of text at position "off". Both
671 arguments are numbers.
672 Possible replies:
673 123 no problem
674 123 !message failed
675 Note that the message in the reply is not quoted.
Bram Moolenaar8b6144b2006-02-08 09:20:24 +0000676 Also sets the current buffer, if necessary.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000677
678saveAndExit Perform the equivalent of closing Vim: ":confirm qall".
679 If there are no changed files or the user does not cancel the
680 operation Vim exits and no result is sent back. The IDE can
681 consider closing the connection as a successful result.
682 If the user cancels the operation the number of modified
683 buffers that remains is returned and Vim does not exit.
684 New in version 2.1.
685
686
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00006876.5 Events *nb-events*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000688
689balloonEval off len type
690 The mouse pointer rests on text for a short while. When "len"
691 is zero, there is no selection and the pointer is at position
692 "off". When "len" is non-zero the text from position "off" to
693 "off" + "len" is selected.
694 Only sent after "enableBalloonEval" was used for this buffer.
695 "type" is not yet defined.
696 Not implemented yet.
697
698balloonText text
699 Used when 'ballooneval' is set and the mouse pointer rests on
700 some text for a moment. "text" is a string, the text under
701 the mouse pointer.
Bram Moolenaar67c53842010-05-22 18:28:27 +0200702 Only when Vim is run with a GUI.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000703 New in version 2.1.
704
705buttonRelease button lnum col
706 Report which button was pressed and the location of the cursor
707 at the time of the release. Only for buffers that are owned
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000708 by the Vim Controller. This event is not sent if the button
709 was released while the mouse was in the status line or in a
Bram Moolenaar402d2fe2005-04-15 21:00:38 +0000710 separator line. If col is less than 1 the button release was
Bram Moolenaar071d4272004-06-13 20:20:40 +0000711 in the sign area.
712 New in version 2.2.
713
Bram Moolenaar009b2592004-10-24 19:18:58 +0000714disconnect
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000715 Tell the Vim Controller that Vim is exiting and not to try and
716 read or write more commands.
Bram Moolenaar009b2592004-10-24 19:18:58 +0000717 New in version 2.3.
718
Bram Moolenaar071d4272004-06-13 20:20:40 +0000719fileClosed Not implemented.
720
721fileModified Not implemented.
722
723fileOpened pathname open modified
724 A file was opened by the user.
725 Arguments:
726 pathname string name of the file
727 open boolean always "T"
728 modified boolean always "F"
729
730geometry cols rows x y
731 Report the size and position of the editor window.
732 Arguments:
733 cols number number of text columns
734 rows number number of text rows
735 x number pixel position on screen
736 y number pixel position on screen
737 Only works for Motif.
738
739insert off text
740 Text "text" has been inserted in Vim at position "off".
741 Only fired when enabled, see "startDocumentListen".
742
743invokeAction Not implemented.
744
745keyCommand keyName
746 Reports a special key being pressed with name "keyName", which
747 is a string.
748 Supported key names:
749 F1 function key 1
750 F2 function key 2
751 ...
752 F12 function key 12
753
754 ' ' space (without the quotes)
755 ! exclamation mark
756 ... any other ASCII printable character
757 ~ tilde
758
759 X any unrecognized key
760
761 The key may be prepended by "C", "S" and/or "M" for Control,
762 Shift and Meta (Alt) modifiers. If there is a modifier a dash
763 is used to separate it from the key name. For example:
764 "C-F2".
765 ASCII characters are new in version 2.1.
766
767keyAtPos keyName lnum/col
768 Like "keyCommand" and also report the line number and column
769 of the cursor.
770 New in version 2.1.
771
Bram Moolenaard7f8f5c2009-01-06 15:14:30 +0000772killed A file was deleted or wiped out by the user and the buffer
773 annotations have been removed. The bufID number for this
774 buffer has become invalid. Only for files that have been
775 assigned a bufID number by the IDE.
Bram Moolenaar071d4272004-06-13 20:20:40 +0000776
777newDotAndMark off off
778 Reports the position of the cursor being at "off" bytes into
779 the buffer. Only sent just before a "keyCommand" event.
780
781quit Not implemented.
782
783remove off len
784 Text was deleted in Vim at position "off" with byte length
785 "len".
786 Only fired when enabled, see "startDocumentListen".
787
788revert Not implemented.
789
790save The buffer has been saved and is now unmodified.
791 Only fired when enabled, see "startDocumentListen".
792
793startupDone The editor has finished its startup work and is ready for
794 editing files.
795 New in version 2.1.
796
797unmodified The buffer is now unmodified.
798 Only fired when enabled, see "startDocumentListen".
799
800version vers Report the version of the interface implementation. Vim
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000801 reports "2.4" (including the quotes).
Bram Moolenaar071d4272004-06-13 20:20:40 +0000802
803
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00008046.6 Special messages *nb-special*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000805
806These messages do not follow the style of the messages above. They are
807terminated by a newline character.
808
809ACCEPT Not used.
810
811AUTH password editor -> IDE: First message that the editor sends to the IDE.
812 Must contain the password for the socket server, as specified
813 with the |-nb| argument. No quotes are used!
814
815DISCONNECT IDE -> editor: break the connection. The editor will exit.
816 The IDE must only send this message when there are no unsaved
817 changes!
818
819DETACH IDE -> editor: break the connection without exiting the
820 editor. Used when the IDE exits without bringing down the
821 editor as well.
822 New in version 2.1.
823
824REJECT Not used.
825
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000826
8276.7 Protocol errors *nb-protocol_errors*
828
829These errors occur when a message violates the protocol:
Bram Moolenaar5e9b2fa2016-02-01 22:37:05 +0100830*E627* *E628* *E629* *E632* *E633* *E634* *E635* *E636*
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000831*E637* *E638* *E639* *E640* *E641* *E642* *E643* *E644* *E645* *E646*
Bram Moolenaaraa3b15d2016-04-21 08:53:19 +0200832*E647* *E648* *E649* *E650* *E651* *E652*
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000833
834
Bram Moolenaar071d4272004-06-13 20:20:40 +0000835==============================================================================
Bram Moolenaarb26e6322010-05-22 21:34:09 +02008367. NetBeans commands *netbeans-commands*
837
Bram Moolenaar4a748032010-09-30 21:47:56 +0200838 *:nbstart* *E511* *E838*
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200839:nbs[tart] {connection} Start a new Netbeans session with {connection} as the
840 socket connection parameters. The format of
Bram Moolenaar9855d6b2010-07-18 14:34:51 +0200841 {connection} is described in |netbeans-parameters|.
Bram Moolenaarb26e6322010-05-22 21:34:09 +0200842 At any time, one may check if the netbeans socket is
843 connected by running the command:
844 ':echo has("netbeans_enabled")'
845
846 *:nbclose*
847:nbc[lose] Close the current NetBeans session. Remove all placed
848 signs.
Bram Moolenaar65c1b012005-01-31 19:02:28 +0000849
850 *:nbkey*
Bram Moolenaare3cc6d42011-10-20 21:58:34 +0200851:nb[key] {key} Pass the {key} to the Vim Controller for processing.
852 When a hot-key has been installed with the specialKeys
853 command, this command can be used to generate a hotkey
854 message to the Vim Controller.
855 This command can also be used to pass any text to the
856 Vim Controller. It is used by Pyclewn, for example,
857 to build the complete set of gdb commands as Vim user
858 commands.
859 The events newDotAndMark, keyCommand and keyAtPos are
860 generated (in this order).
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000861
Bram Moolenaar65c1b012005-01-31 19:02:28 +0000862
863==============================================================================
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00008648. Known problems *netbeans-problems*
Bram Moolenaar071d4272004-06-13 20:20:40 +0000865
866NUL bytes are not possible. For editor -> IDE they will appear as NL
867characters. For IDE -> editor they cannot be inserted.
868
Bram Moolenaar67c53842010-05-22 18:28:27 +0200869A NetBeans session may be initiated with Vim running in a terminal, and
Bram Moolenaar9855d6b2010-07-18 14:34:51 +0200870continued later in a GUI environment after running the |:gui| command. In this
Bram Moolenaar67c53842010-05-22 18:28:27 +0200871case, the highlighting defined for the NetBeans annotations may be cleared
872when the ":gui" command sources .gvimrc and this file loads a colorscheme
873that runs the command ":highlight clear".
874New in version 2.5.
875
Bram Moolenaar071d4272004-06-13 20:20:40 +0000876
Bram Moolenaar3577c6f2008-06-24 21:16:56 +0000877==============================================================================
8789. Debugging NetBeans protocol *netbeans-debugging*
879
880To debug the Vim protocol, you must first compile Vim with debugging support
881and NetBeans debugging support. See |netbeans-configure| for instructions
882about Vim compiling and how to enable debug support.
883
884When running Vim, set the following environment variables:
885
886 export SPRO_GVIM_DEBUG=netbeans.log
887 export SPRO_GVIM_DLEVEL=0xffffffff
888
889Vim will then log all the incoming and outgoing messages of the NetBeans
890protocol to the file netbeans.log .
891
892The content of netbeans.log after a session looks like this:
893Tue May 20 17:19:27 2008
894EVT: 0:startupDone=0
895CMD 1: (1) create
896CMD 2: (1) setTitle "testfile1.txt"
897CMD 3: (1) setFullName "testfile1.txt"
898EVT(suppressed): 1:remove=3 0 -1
899EVT: 1:fileOpened=0 "d:\\work\\vimWrapper\\vimWrapper2\\pyvimwrapper\\tests\\testfile1.txt" T F
900CMD 4: (1) initDone
901FUN 5: (0) getCursor
902REP 5: 1 1 0 0
903CMD 6: (2) create
904CMD 7: (2) setTitle "testfile2.txt"
905CMD 8: (2) setFullName "testfile2.txt"
906EVT(suppressed): 2:remove=8 0 -1
907EVT: 2:fileOpened=0 "d:\\work\\vimWrapper\\vimWrapper2\\pyvimwrapper\\tests\\testfile2.txt" T F
908CMD 9: (2) initDone
909
910
911==============================================================================
91210. NetBeans External Editor
913
914NOTE: This information is obsolete! Only relevant if you are using an old
915version of NetBeans.
916
917
91810.1. Downloading NetBeans *netbeans-download*
919
920The NetBeans IDE is available for download from netbeans.org. You can download
921a released version, download sources, or use CVS to download the current
922source tree. If you choose to download sources, follow directions from
923netbeans.org on building NetBeans.
924
925Depending on the version of NetBeans you download, you may need to do further
926work to get the required External Editor module. This is the module which lets
927NetBeans work with gvim (or xemacs :-). See http://externaleditor.netbeans.org
928for details on downloading this module if your NetBeans release does not have
929it.
930
931For C, C++, and Fortran support you will also need the cpp module. See
932http://cpp.netbeans.org for information regarding this module.
933
934You can also download Sun ONE Studio from Sun Microsystems, Inc for a 30 day
935free trial. See http://www.sun.com for further details.
936
937
93810.2. NetBeans Key Bindings *netbeans-keybindings*
939
940Vim understands a number of key bindings that execute NetBeans commands.
941These are typically all the Function key combinations. To execute a NetBeans
942command, the user must press the Pause key followed by a NetBeans key binding.
943For example, in order to compile a Java file, the NetBeans key binding is
944"F9". So, while in vim, press "Pause F9" to compile a java file. To toggle a
945breakpoint at the current line, press "Pause Shift F8".
946
947The Pause key is Function key 21. If you don't have a working Pause key and
948want to use F8 instead, use: >
949
950 :map <F8> <F21>
951
952The External Editor module dynamically reads the NetBeans key bindings so vim
953should always have the latest key bindings, even when NetBeans changes them.
954
955
95610.3. Preparing NetBeans for Vim *netbeans-preparation*
957
958In order for NetBeans to work with vim, the NetBeans External Editor module
959must be loaded and enabled. If you have a Sun ONE Studio Enterprise Edition
960then this module should be loaded and enabled. If you have a NetBeans release
961you may need to find another way of obtaining this open source module.
962
963You can check if you have this module by opening the Tools->Options dialog
964and drilling down to the "Modules" list (IDE Configuration->System->Modules).
965If your Modules list has an entry for "External Editor" you must make sure
966it is enabled (the "Enabled" property should have the value "True"). If your
967Modules list has no External Editor see the next section on |obtaining-exted|.
968
969
97010.4. Obtaining the External Editor Module *obtaining-exted*
971
972There are 2 ways of obtaining the External Editor module. The easiest way
973is to use the NetBeans Update Center to download and install the module.
974Unfortunately, some versions do not have this module in their update
975center. If you cannot download via the update center you will need to
976download sources and build the module. I will try and get the module
977available from the NetBeans Update Center so building will be unnecessary.
978Also check http://externaleditor.netbeans.org for other availability options.
979
980To download the External Editor sources via CVS and build your own module,
981see http://externaleditor.netbeans.org and http://www.netbeans.org.
982Unfortunately, this is not a trivial procedure.
983
984
98510.5. Setting up NetBeans to run with Vim *netbeans-setup*
986
987Assuming you have loaded and enabled the NetBeans External Editor module
988as described in |netbeans-preparation| all you need to do is verify that
989the gvim command line is properly configured for your environment.
990
991Open the Tools->Options dialog and open the Editing category. Select the
992External Editor. The right hand pane should contain a Properties tab and
993an Expert tab. In the Properties tab make sure the "Editor Type" is set
994to "Vim". In the Expert tab make sure the "Vim Command" is correct.
995
996You should be careful if you change the "Vim Command". There are command
997line options there which must be there for the connection to be properly
998set up. You can change the command name but that's about it. If your gvim
Bram Moolenaar6aa8cea2017-06-05 14:44:35 +0200999can be found by your $PATH then the Vim Command can start with "gvim". If
Bram Moolenaar3577c6f2008-06-24 21:16:56 +00001000you don't want gvim searched from your $PATH then hard code in the full
1001Unix path name. At this point you should get a gvim for any source file
1002you open in NetBeans.
1003
1004If some files come up in gvim and others (with different file suffixes) come
1005up in the default NetBeans editor you should verify the MIME type in the
1006Expert tab MIME Type property. NetBeans is MIME oriented and the External
1007Editor will only open MIME types specified in this property.
1008
1009
Bram Moolenaar071d4272004-06-13 20:20:40 +00001010 vim:tw=78:ts=8:ft=help:norl: