annotate runtime/doc/netbeans.txt @ 1437:8b2e9257cc11 v7.1.152

updated for version 7.1-152
author vimboss
date Thu, 08 Nov 2007 13:51:42 +0000
parents 5bed56fce2b5
children 73fe8baea242
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1240
5bed56fce2b5 updated for version 7.1
vimboss
parents: 1197
diff changeset
1 *netbeans.txt* For Vim version 7.1. Last change: 2006 Nov 14
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Gordon Prieur
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 NetBeans ExternalEditor Integration Features *netbeans*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8 *netbeans-support*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 1. Introduction |netbeans-intro|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 2. NetBeans Key Bindings |netbeans-keybindings|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 3. Configuring Vim for NetBeans |netbeans-configure|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12 4. Downloading NetBeans |netbeans-download|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 5. Preparing NetBeans for Vim |netbeans-preparation|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14 6. Obtaining the External Editor Module |obtaining-exted|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 7. Setting up NetBeans to run with Vim |netbeans-setup|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 8. Messages |netbeans-messages|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17 9. Running Vim from NetBeans |netbeans-run|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 10. NetBeans protocol |netbeans-protocol|
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
19 11. NetBeans commands |netbeans-commands|
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
20 12. Known problems |netbeans-problems|
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 {Vi does not have any of these features}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23 {only available when compiled with the |+netbeans_intg| feature}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 1. Introduction *netbeans-intro*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 NetBeans is an open source Integrated Development Environment developed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 jointly by Sun Microsystems, Inc. and the netbeans.org developer community.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 Initially just a Java IDE, NetBeans has had C, C++, and Fortran support added
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 in recent releases.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 For more information visit the main NetBeans web site http://www.netbeans.org
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 or the NetBeans External Editor site at http://externaleditor.netbeans.org.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 Sun Microsystems, Inc. also ships NetBeans under the name Sun ONE Studio.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 Visit http://www.sun.com for more information regarding the Sun ONE Studio
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 product line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 Current releases of NetBeans provide full support for Java and limited support
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
41 for C, C++, and Fortran. Current releases of Sun ONE Studio provide full
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 support for Java, C, C++, and Fortran.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 The interface to NetBeans is also supported by Agide, the A-A-P GUI IDE.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 Agide is very different from NetBeans:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 - Based on Python instead of Java, much smaller footprint and fast startup.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 - Agide is a framework in which many different tools can work together.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 See the A-A-P website for information: http://www.A-A-P.org.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
49
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
50 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
51 2. NetBeans Key Bindings *netbeans-keybindings*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
52
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
53 Vim understands a number of key bindings that execute NetBeans commands.
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
54 These are typically all the Function key combinations. To execute a NetBeans
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
55 command, the user must press the Pause key followed by a NetBeans key binding.
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
56 For example, in order to compile a Java file, the NetBeans key binding is
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
57 "F9". So, while in vim, press "Pause F9" to compile a java file. To toggle a
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
58 breakpoint at the current line, press "Pause Shift F8".
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
59
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
60 The Pause key is Function key 21. If you don't have a working Pause key and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 want to use F8 instead, use: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 :map <F8> <F21>
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 The External Editor module dynamically reads the NetBeans key bindings so vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 should always have the latest key bindings, even when NetBeans changes them.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
68 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
69 3. Configuring Vim for NetBeans *netbeans-configure*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
70
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 For more help installing vim, please read |usr_90.txt| in the Vim User Manual.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
73
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 On Unix
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 When running configure without arguments the NetBeans interface should be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77 included. That is, if the configure check to find out if your system supports
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 the required features succeeds.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 In case you do not want the NetBeans interface you can disable it by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 uncommenting a line with "--disable-netbeans" in the Makefile.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 Currently, only gvim is supported in this integration as NetBeans does not
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
84 have means to supply a terminal emulator for the vim command. Furthermore,
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 there is only GUI support for GTK, GNOME, and Motif.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
87 If Motif support is required the user must supply XPM libraries. See
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 |workshop-xpm| for details on obtaining the latest version of XPM.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 On MS-Windows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 The Win32 support is now in beta stage.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 To use XPM signs on Win32 (e.g. when using with NetBeans) you can compile
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 XPM by yourself or use precompiled libraries from http://iamphet.nm.ru/misc/
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 (for MS Visual C++) or http://gnuwin32.sourceforge.net (for MinGW).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100 4. Downloading NetBeans *netbeans-download*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
102 The NetBeans IDE is available for download from netbeans.org. You can download
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 a released version, download sources, or use CVS to download the current
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
104 source tree. If you choose to download sources, follow directions from
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 netbeans.org on building NetBeans.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 Depending on the version of NetBeans you download, you may need to do further
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
108 work to get the required External Editor module. This is the module which lets
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
109 NetBeans work with gvim (or xemacs :-). See http://externaleditor.netbeans.org
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 for details on downloading this module if your NetBeans release does not have
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
113 For C, C++, and Fortran support you will also need the cpp module. See
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 http://cpp.netbeans.org for information regarding this module.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 You can also download Sun ONE Studio from Sun Microsystems, Inc for a 30 day
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
117 free trial. See http://www.sun.com for further details.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 5. Preparing NetBeans for Vim *netbeans-preparation*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 In order for NetBeans to work with vim, the NetBeans External Editor module
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
123 must be loaded and enabled. If you have a Sun ONE Studio Enterprise Edition
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
124 then this module should be loaded and enabled. If you have a NetBeans release
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 you may need to find another way of obtaining this open source module.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 You can check if you have this module by opening the Tools->Options dialog
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 and drilling down to the "Modules" list (IDE Configuration->System->Modules).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 If your Modules list has an entry for "External Editor" you must make sure
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
130 it is enabled (the "Enabled" property should have the value "True"). If your
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 Modules list has no External Editor see the next section on |obtaining-exted|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 6. Obtaining the External Editor Module *obtaining-exted*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
136 There are 2 ways of obtaining the External Editor module. The easiest way
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 is to use the NetBeans Update Center to download and install the module.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 Unfortunately, some versions do not have this module in their update
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
139 center. If you cannot download via the update center you will need to
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
140 download sources and build the module. I will try and get the module
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 available from the NetBeans Update Center so building will be unnecessary.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 Also check http://externaleditor.netbeans.org for other availability options.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 To download the External Editor sources via CVS and build your own module,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 see http://externaleditor.netbeans.org and http://www.netbeans.org.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 Unfortunately, this is not a trivial procedure.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149 7. Setting up NetBeans to run with Vim *netbeans-setup*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 Assuming you have loaded and enabled the NetBeans External Editor module
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 as described in |netbeans-preparation| all you need to do is verify that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 the gvim command line is properly configured for your environment.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
155 Open the Tools->Options dialog and open the Editing category. Select the
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
156 External Editor. The right hand pane should contain a Properties tab and
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
157 an Expert tab. In the Properties tab make sure the "Editor Type" is set
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
158 to "Vim". In the Expert tab make sure the "Vim Command" is correct.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
160 You should be careful if you change the "Vim Command". There are command
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 line options there which must be there for the connection to be properly
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
162 set up. You can change the command name but that's about it. If your gvim
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
163 can be found by your $PATH then the VIM Command can start with "gvim". If
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 you don't want gvim searched from your $PATH then hard code in the full
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
165 Unix path name. At this point you should get a gvim for any source file
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 you open in NetBeans.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 If some files come up in gvim and others (with different file suffixes) come
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 up in the default NetBeans editor you should verify the MIME type in the
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
170 Expert tab MIME Type property. NetBeans is MIME oriented and the External
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 Editor will only open MIME types specified in this property.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 8. Messages *netbeans-messages*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 These messages are specific for NetBeans:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 *E463*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179 Region is guarded, cannot modify
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 NetBeans defines guarded areas in the text, which you cannot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 change.
659
d6a69271cb9a updated for version 7.0194
vimboss
parents: 236
diff changeset
182 Also sets the current buffer, if necessary.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 *E656*
9
4102fb4ea781 updated for version 7.0002
vimboss
parents: 7
diff changeset
185 NetBeans disallows writes of unmodified buffers
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 NetBeans does not support writes of unmodified buffers that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 were opened from NetBeans.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 *E657*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 Partial writes disallowed for NetBeans buffers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 NetBeans does not support partial writes for buffers that were
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 opened from NetBeans.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 *E658*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 NetBeans connection lost for this buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 NetBeans has become confused about the state of this file.
788
b5aed52a4881 updated for version 7.0230
vimboss
parents: 718
diff changeset
197 Rather than risk data corruption, NetBeans has severed the
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
198 connection for this file. Vim will take over responsibility
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 for saving changes to this file and NetBeans will no longer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 know of these changes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
202 *E744*
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
203 NetBeans does not allow changes in read-only files
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
204 Vim normally allows changes to a read-only file and only
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
205 enforces the read-only rule if you try to write the file.
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
206 However, NetBeans does not let you make changes to a file
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
207 which is read-only and becomes confused if vim does this.
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
208 So vim does not allow modifications to files when run with
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
209 NetBeans.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
210 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
211 9. Running Vim from NetBeans *netbeans-run*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
212
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
213 NetBeans starts Vim with the |-nb| argument. Three forms can be used, that
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
214 differ in the way the information for the connection is specified:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
215
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
216 -nb={fname} from a file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
217 -nb:{hostname}:{addr}:{password} directly
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
218 -nb from a file or environment
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
219
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
220 *E660* *E668*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
221 For security reasons, the best method is to write the information in a file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
222 readable only by the user. The name of the file can be passed with the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
223 "-nb={fname}" argument or, when "-nb" is used without a parameter, the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
224 environment variable "__NETBEANS_CONINFO". The file must contain these three
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
225 lines, in any order:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
226
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
227 host={hostname}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
228 port={addr}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
229 auth={password}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
230
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
231 Other lines are ignored. The caller of Vim is responsible for deleting the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
232 file afterwards.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
233
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
234 {hostname} is the name of the machine where NetBeans is running. When omitted
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
235 the environment variable "__NETBEANS_HOST" is used or the default "localhost".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
236
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
237 {addr} is the port number for NetBeans. When omitted the environment variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
238 "__NETBEANS_SOCKET" is used or the default 3219.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
239
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
240 {password} is the password for connecting to NetBeans. When omitted the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
241 environment variable "__NETBEANS_VIM_PASSWORD" is used or "changeme".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
242
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
243 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
244 10. NetBeans protocol *netbeans-protocol*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
245
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
246 The communication between NetBeans and Vim uses plain text messages. This
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
247 protocol was first designed to work with the external editor module of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
248 NetBeans (see http://externaleditor.netbeans.org). Later it was extended to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
249 work with Agide (A-A-P GUI IDE, see http://www.a-a-p.org). The extensions are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
250 marked with "version 2.1".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
251
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
252 Version 2.2 of the protocol has several minor changes which should only affect
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
253 NetBeans users (ie, not Agide users). However, a bug was fixed which could
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
254 cause confusion. The netbeans_saved() function sent a "save" protocol
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
255 command. In protocol version 2.1 and earlier this was incorrectly interpreted
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
256 as a notification that a write had taken place. In reality, it told NetBeans
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
257 to save the file so multiple writes were being done. This caused various
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
258 problems and has been fixed in 2.2. To decrease the likelihood of this
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
259 confusion happening again, netbeans_saved() has been renamed to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
260 netbeans_save_buffer().
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
261
1037
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
262 We are now at version 2.4. For the differences between 2.3 and 2.4 search for
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
263 "2.4" below.
718
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
264
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
265 The messages are currently sent over a socket. Since the messages are in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
266 plain UTF-8 text this protocol could also be used with any other communication
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
267 mechanism.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
268
718
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
269 To see an example implementation look at the gvim tool in Agide. Currently
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
270 found here:
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
271 http://cvs.sf.net/viewcvs.py/a-a-p/Agide/Tools/GvimTool.py?view=markup
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
272
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
273
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
274
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
275 10.1 Kinds of messages |nb-messages|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
276 10.2 Terms |nb-terms|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
277 10.3 Commands |nb-commands|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
278 10.4 Functions and Replies |nb-functions|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
279 10.5 Events |nb-events|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
280 10.6 Special messages |nb-special|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
281
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
282 *E627* *E628* *E629* *E630* *E631* *E632* *E633* *E634* *E635* *E636*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
283 *E637* *E638* *E639* *E640* *E641* *E642* *E643* *E644* *E645* *E646*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
284 *E647* *E648* *E649* *E650* *E651* *E652* *E653* *E654*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
285 These errors occur when a message violates the protocol.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
286
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
287
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
288 10.1 Kinds of messages *nb-messages*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
289
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
290 There are four kinds of messages:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
291
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
292 kind direction comment ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
293 Command IDE -> editor no reply necessary
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
294 Function IDE -> editor editor must send back a reply
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
295 Reply editor -> IDE only in response to a Function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
296 Event editor -> IDE no reply necessary
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
297
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
298 The messages are sent as a single line with a terminating newline character.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
299 Arguments are separated by a single space. The first item of the message
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
300 depends on the kind of message:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
301
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
302 kind first item example ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
303 Command bufID:name!seqno 11:showBalloon!123 "text"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
304 Function bufID:name/seqno 11:getLength/123
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
305 Reply seqno 123 5000
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
306 Event bufID:name=123 11:keyCommand=123 "S-F2"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
307
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
308
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
309 10.2 Terms *nb-terms*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
310
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
311 bufID Buffer number. A message may be either for a specific buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
312 or generic. Generic messages use a bufID of zero. NOTE: this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
313 buffer ID is assigned by the IDE, it is not Vim's buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
314 number. The bufID must be a sequentially rising number,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
315 starting at one.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
316
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
317 seqno The IDE uses a sequence number for Commands and Functions. A
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
318 Reply must use the sequence number of the Function that it is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
319 associated with. A zero sequence number can be used for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
320 Events (the seqno of the last received Command or Function can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
321 also be used).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
322
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
323 string Argument in double quotes. Text is in UTF-8 encoding. This
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
324 means ASCII is passed as-is. Special characters are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
325 represented with a backslash:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
326 \" double quote
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
327 \n newline
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
328 \r carriage-return
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
329 \t tab (optional, also works literally)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
330 \\ backslash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
331 NUL bytes are not allowed!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
332
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
333 boolean Argument with two possible values:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
334 T true
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
335 F false
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
336
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
337 number Argument with a decimal number.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
338
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
339 optnum Argument with either a decimal number or "none" (without the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
340 quotes).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
341
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
342 offset A number argument that indicates a byte position in a buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
343 The first byte has offset zero. Line breaks are counted for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
344 how they appear in the file (CR/LF counts for two bytes).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
345 Note that a multi-byte character is counted for the number of
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
346 bytes it takes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
347
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
348 lnum/col Argument with a line number and column number position. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
349 line number starts with one, the column is the byte position,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
350 starting with zero. Note that a multi-byte character counts
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
351 for several columns.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
352
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
353 pathname String argument: file name with full path.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
354
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
355
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
356 10.3 Commands *nb-commands*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
357
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
358 actionMenuItem Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
359
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
360 actionSensitivity
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
361 Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
362
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
363 addAnno serNum typeNum off len
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
364 Place an annotation in this buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
365 Arguments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
366 serNum number serial number of this placed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
367 annotation, used to be able to remove
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
368 it
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
369 typeNum number sequence number of the annotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
370 defined with defineAnnoType for this
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
371 buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
372 off number offset where annotation is to be placed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
373 len number not used
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
374 In version 2.1 "lnum/col" can be used instead of "off".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
375
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
376 balloonResult text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
377 Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
378
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
379 close Close the buffer. This leaves us without current buffer, very
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
380 dangerous to use!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
381
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
382 create Creates a buffer without a name. Replaces the current buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
383 (it's hidden when it was changed).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
384 NetBeans uses this as the first command for a file that is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
385 being opened. The sequence of commands could be:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
386 create
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
387 setCaretListener (ignored)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
388 setModified (no effect)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
389 setContentType (ignored)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
390 startDocumentListen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
391 setTitle
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
392 setFullName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
393
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
394 defineAnnoType typeNum typeName tooltip glyphFile fg bg
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
395 Define a type of annotation for this buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
396 Arguments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
397 typeNum number sequence number (not really used)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
398 typeName string name that identifies this annotation
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
399 tooltip string not used
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
400 glyphFile string name of icon file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
401 fg optnum foreground color for line highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
402 bg optnum background color for line highlighting
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
403 Vim will define a sign for the annotation.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
404 When both "fg" and "bg" are "none" no line highlighting is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
405 used (new in version 2.1).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
406 When "glyphFile" is empty, no text sign is used (new in
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
407 version 2.1).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
408 When "glyphFile" is one or two characters long, a text sign is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
409 defined (new in version 2.1).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
410 Note: the annotations will be defined in sequence, and the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
411 sequence number is later used with addAnno.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
412
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
413 editFile pathname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
414 Set the name for the buffer and edit the file "pathname", a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
415 string argument.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
416 Normal way for the IDE to tell the editor to edit a file. If
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
417 the IDE is going to pass the file text to the editor use these
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
418 commands instead:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
419 setFullName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
420 insert
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
421 initDone
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
422 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
423
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
424 enableBalloonEval
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
425 Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
426
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
427 endAtomic End an atomic operation. The changes between "startAtomic"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
428 and "endAtomic" can be undone as one operation. But it's not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
429 implemented yet. Redraw when necessary.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
430
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
431 guard off len
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
432 Mark an area in the buffer as guarded. This means it cannot
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
433 be edited. "off" and "len" are numbers and specify the text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
434 to be guarded.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
435
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
436 initDone Mark the buffer as ready for use. Implicitly makes the buffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
437 the current buffer. Fires the BufReadPost autocommand event.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
438
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
439 insertDone
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
440 Sent by NetBeans to tell vim an initial file insert is done.
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
441 This triggers a read message being printed. Prior to version
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
442 2.3, no read messages were displayed after opening a file.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
443 New in version 2.3.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
444
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
445 moveAnnoToFront serNum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
446 Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
447
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
448 netbeansBuffer isNetbeansBuffer
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
449 If "isNetbeansBuffer" is "T" then this buffer is ``owned'' by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
450 NetBeans.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
451 New in version 2.2.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
452
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
453 putBufferNumber pathname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
454 Associate a buffer number with the Vim buffer by the name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
455 "pathname", a string argument. To be used when the editor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
456 reported editing another file to the IDE and the IDE needs to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
457 tell the editor what buffer number it will use for this file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
458 Also marks the buffer as initialized.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
459 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
460
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
461 raise Bring the editor to the foreground.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
462 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
463
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
464 removeAnno serNum
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
465 Remove a previously place annotation for this buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
466 "serNum" is the same number used in addAnno.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
467
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
468 save Save the buffer when it was modified. The other side of the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
469 interface is expected to write the buffer and invoke
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
470 "setModified" to reset the "changed" flag of the buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
471 The writing is skipped when one of these conditions is true:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
472 - 'write' is not set
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
473 - the buffer is read-only
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
474 - the buffer does not have a file name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
475 - 'buftype' disallows writing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
476 New in version 2.2.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
477
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
478 saveDone
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
479 Sent by NetBeans to tell vim a save is done. This triggers
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
480 a save message being printed. Prior to version 2.3, no save
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
481 messages were displayed after a save.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
482 New in version 2.3.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
483
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
484 setAsUser Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
485
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
486 setBufferNumber pathname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
487 Associate a buffer number with Vim buffer by the name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
488 "pathname". To be used when the editor reported editing
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
489 another file to the IDE and the IDE needs to tell the editor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
490 what buffer number it will use for this file.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
491 Has the side effect of making the buffer the current buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
492 See "putBufferNumber" for a more useful command.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
493
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
494 setContentType
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
495 Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
496
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
497 setDot off Make the buffer the current buffer and set the cursor at the
659
d6a69271cb9a updated for version 7.0194
vimboss
parents: 236
diff changeset
498 specified position. If the buffer is open in another window
d6a69271cb9a updated for version 7.0194
vimboss
parents: 236
diff changeset
499 than make that window the current window.
d6a69271cb9a updated for version 7.0194
vimboss
parents: 236
diff changeset
500 If there are folds they are opened to make the cursor line
d6a69271cb9a updated for version 7.0194
vimboss
parents: 236
diff changeset
501 visible.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
502 In version 2.1 "lnum/col" can be used instead of "off".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
503
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
504 setExitDelay seconds
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
505 Set the delay for exiting to "seconds", a number.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
506 This delay is used to give the IDE a chance to handle things
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
507 before really exiting. The default delay is two seconds.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
508 New in version 2.1.
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
509 Obsolete in version 2.3.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
510
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
511 setFullName pathname
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
512 Set the file name to be used for a buffer to "pathname", a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
513 string argument.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
514 Used when the IDE wants to edit a file under control of the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
515 IDE. This makes the buffer the current buffer, but does not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
516 read the file. "insert" commands will be used next to set the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
517 contents.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
518
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
519 setLocAndSize Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
520
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
521 setMark Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
522
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
523 setModified modified
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
524 When the boolean argument "modified" is "T" mark the buffer as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
525 modified, when it is "F" mark it as unmodified.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
526
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
527 setModtime time
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
528 Update a buffers modification time after NetBeans saves the
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
529 file.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
530 New in version 2.3.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
531
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
532 setReadOnly
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
533 Passed by NetBeans to tell vim a file is readonly.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
534 Implemented in verion 2.3.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
535
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
536 setStyle Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
537
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
538 setTitle name
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
539 Set the title for the buffer to "name", a string argument.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
540 The title is only used for NetBeans functions, not by Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
541
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
542 setVisible visible
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
543 When the boolean argument "visible" is "T", goto the buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
544 The "F" argument does nothing.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
545
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
546 showBalloon text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
547 Show a balloon (popup window) at the mouse pointer position,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
548 containing "text", a string argument. The balloon should
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
549 disappear when the mouse is moved more than a few pixels.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
550 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
551
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
552 specialKeys
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
553 Map a set of keys (mostly function keys) to be passed back
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
554 to NetBeans for processing. This lets NetBeans hotkeys be
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
555 used from vim.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
556 Implemented in version 2.3.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
557
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
558 startAtomic Begin an atomic operation. The screen will not be updated
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
559 until "endAtomic" is given.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
560
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
561 startCaretListen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
562 Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
563
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
564 startDocumentListen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
565 Mark the buffer to report changes to the IDE with the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
566 "insert" and "remove" events. The default is to report
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
567 changes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
568
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
569 stopCaretListen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
570 Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
571
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
572 stopDocumentListen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
573 Mark the buffer to stop reporting changes to the IDE.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
574 Opposite of startDocumentListen.
153
19670b05ee32 updated for version 7.0047
vimboss
parents: 146
diff changeset
575 NOTE: if "netbeansBuffer" was used to mark this buffer as a
19670b05ee32 updated for version 7.0047
vimboss
parents: 146
diff changeset
576 NetBeans buffer, then the buffer is deleted in Vim. This is
19670b05ee32 updated for version 7.0047
vimboss
parents: 146
diff changeset
577 for compatibility with Sun Studio 10.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
578
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
579 unguard off len
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
580 Opposite of "guard", remove guarding for a text area.
659
d6a69271cb9a updated for version 7.0194
vimboss
parents: 236
diff changeset
581 Also sets the current buffer, if necessary.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
582
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
583 version Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
584
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
585
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
586 10.4 Functions and Replies *nb-functions*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
587
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
588 getDot Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
589
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
590 getCursor Return the current buffer and cursor position.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
591 The reply is:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
592 seqno bufID lnum col off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
593 seqno = sequence number of the function
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
594 bufID = buffer ID of the current buffer (if this is unknown -1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
595 is used)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
596 lnum = line number of the cursor (first line is one)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
597 col = column number of the cursor (in bytes, zero based)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
598 off = offset of the cursor in the buffer (in bytes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
599 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
600
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
601 getLength Return the length of the buffer in bytes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
602 Reply example for a buffer with 5000 bytes:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
603 123 5000
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
604 TODO: explain use of partial line.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
605
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
606 getMark Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
607
1037
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
608 getAnno serNum
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
609 Return the line number of the annotation in the buffer.
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
610 Argument:
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
611 serNum serial number of this placed annotation
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
612 The reply is:
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
613 123 lnum line number of the annotation
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
614 123 0 invalid annotation serial number
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
615 New in version 2.4.
7df2d171ef1c updated for version 7.0-163
vimboss
parents: 874
diff changeset
616
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
617 getModified When a buffer is specified: Return zero if the buffer does not
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
618 have changes, one if it does have changes.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
619 When no buffer is specified (buffer number zero): Return the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
620 number of buffers with changes. When the result is zero it's
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
621 safe to tell Vim to exit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
622 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
623
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
624 getText Return the contents of the buffer as a string.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
625 Reply example for a buffer with two lines
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
626 123 "first line\nsecond line\n"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
627 NOTE: docs indicate an offset and length argument, but this is
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
628 not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
629
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
630 insert off text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
631 Insert "text" before position "off". "text" is a string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
632 argument, "off" a number.
718
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
633 "off" should have a "\n" (newline) at the end of each line.
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
634 Or "\r\n" when 'fileformat' is "dos". When using "insert" in
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
635 an empty buffer Vim will set 'fileformat' accordingly.
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
636 When "off" points to the start of a line the text is inserted
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
637 above this line. Thus when "off" is zero lines are inserted
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
638 before the first line.
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
639 When "off" points after the start of a line, possibly on the
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
640 NUL at the end of a line, the first line of text is appended
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
641 to this line. Further lines come below it.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
642 Possible replies:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
643 123 no problem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
644 123 !message failed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
645 Note that the message in the reply is not quoted.
659
d6a69271cb9a updated for version 7.0194
vimboss
parents: 236
diff changeset
646 Also sets the current buffer, if necessary.
718
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
647 Does not move the cursor to the changed text.
7b21554be7a1 updated for version 7.0219
vimboss
parents: 659
diff changeset
648 Resets undo information.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
649
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
650 remove off length
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
651 Delete "length" bytes of text at position "off". Both
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
652 arguments are numbers.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
653 Possible replies:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
654 123 no problem
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
655 123 !message failed
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
656 Note that the message in the reply is not quoted.
659
d6a69271cb9a updated for version 7.0194
vimboss
parents: 236
diff changeset
657 Also sets the current buffer, if necessary.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
658
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
659 saveAndExit Perform the equivalent of closing Vim: ":confirm qall".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
660 If there are no changed files or the user does not cancel the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
661 operation Vim exits and no result is sent back. The IDE can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
662 consider closing the connection as a successful result.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
663 If the user cancels the operation the number of modified
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
664 buffers that remains is returned and Vim does not exit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
665 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
666
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
667
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
668 10.5 Events *nb-events*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
669
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
670 balloonEval off len type
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
671 The mouse pointer rests on text for a short while. When "len"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
672 is zero, there is no selection and the pointer is at position
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
673 "off". When "len" is non-zero the text from position "off" to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
674 "off" + "len" is selected.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
675 Only sent after "enableBalloonEval" was used for this buffer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
676 "type" is not yet defined.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
677 Not implemented yet.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
678
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
679 balloonText text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
680 Used when 'ballooneval' is set and the mouse pointer rests on
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
681 some text for a moment. "text" is a string, the text under
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
682 the mouse pointer.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
683 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
684
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
685 buttonRelease button lnum col
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
686 Report which button was pressed and the location of the cursor
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
687 at the time of the release. Only for buffers that are owned
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
688 by NetBeans. This event is not sent if the button was
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
689 released while the mouse was in the status line or in a
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
690 separator line. If col is less than 1 the button release was
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
691 in the sign area.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
692 New in version 2.2.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
693
33
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
694 disconnect
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
695 Tell NetBeans that vim is exiting and not to try and read or
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
696 write more commands.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
697 New in version 2.3.
f6033dcbaf31 updated for version 7.0020
vimboss
parents: 9
diff changeset
698
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
699 fileClosed Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
700
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
701 fileModified Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
702
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
703 fileOpened pathname open modified
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
704 A file was opened by the user.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
705 Arguments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
706 pathname string name of the file
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
707 open boolean always "T"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
708 modified boolean always "F"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
709
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
710 geometry cols rows x y
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
711 Report the size and position of the editor window.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
712 Arguments:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
713 cols number number of text columns
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
714 rows number number of text rows
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
715 x number pixel position on screen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
716 y number pixel position on screen
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
717 Only works for Motif.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
718
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
719 insert off text
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
720 Text "text" has been inserted in Vim at position "off".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
721 Only fired when enabled, see "startDocumentListen".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
722
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
723 invokeAction Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
724
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
725 keyCommand keyName
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
726 Reports a special key being pressed with name "keyName", which
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
727 is a string.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
728 Supported key names:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
729 F1 function key 1
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
730 F2 function key 2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
731 ...
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
732 F12 function key 12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
733
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
734 ' ' space (without the quotes)
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
735 ! exclamation mark
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
736 ... any other ASCII printable character
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
737 ~ tilde
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
738
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
739 X any unrecognized key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
740
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
741 The key may be prepended by "C", "S" and/or "M" for Control,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
742 Shift and Meta (Alt) modifiers. If there is a modifier a dash
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
743 is used to separate it from the key name. For example:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
744 "C-F2".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
745 ASCII characters are new in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
746
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
747 keyAtPos keyName lnum/col
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
748 Like "keyCommand" and also report the line number and column
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
749 of the cursor.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
750 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
751
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
752 killed A file was closed by the user. Only for files that have been
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
753 assigned a number by the IDE.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
754
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
755 newDotAndMark off off
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
756 Reports the position of the cursor being at "off" bytes into
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
757 the buffer. Only sent just before a "keyCommand" event.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
758
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
759 quit Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
760
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
761 remove off len
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
762 Text was deleted in Vim at position "off" with byte length
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
763 "len".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
764 Only fired when enabled, see "startDocumentListen".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
765
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
766 revert Not implemented.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
767
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
768 save The buffer has been saved and is now unmodified.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
769 Only fired when enabled, see "startDocumentListen".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
770
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
771 startupDone The editor has finished its startup work and is ready for
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
772 editing files.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
773 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
774
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
775 unmodified The buffer is now unmodified.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
776 Only fired when enabled, see "startDocumentListen".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
777
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
778 version vers Report the version of the interface implementation. Vim
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
779 reports "2.2" (including the quotes).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
780
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
781
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
782 10.6 Special messages *nb-special*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
783
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
784 These messages do not follow the style of the messages above. They are
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
785 terminated by a newline character.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
786
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
787 ACCEPT Not used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
788
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
789 AUTH password editor -> IDE: First message that the editor sends to the IDE.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
790 Must contain the password for the socket server, as specified
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
791 with the |-nb| argument. No quotes are used!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
792
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
793 DISCONNECT IDE -> editor: break the connection. The editor will exit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
794 The IDE must only send this message when there are no unsaved
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
795 changes!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
796
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
797 DETACH IDE -> editor: break the connection without exiting the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
798 editor. Used when the IDE exits without bringing down the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
799 editor as well.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
800 New in version 2.1.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
801
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
802 REJECT Not used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
803
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
804 ==============================================================================
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
805 11. NetBeans Commands *netbeans-commands*
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
806
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
807 *:nbkey*
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
808 :nbkey key Pass the key to NetBeans for processing
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
809
236
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
810 Pass the key to NetBeans for hot-key processing. You should not need to use
4707450c2b33 updated for version 7.0066
vimboss
parents: 153
diff changeset
811 this command directly. However, NetBeans passes a list of hot-keys to Vim at
146
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
812 startup and when one of these keys is pressed, this command is generated to
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
813 send the key press back to NetBeans.
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
814
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
815 ==============================================================================
5cc0aca13a3f updated for version 7.0046
vimboss
parents: 33
diff changeset
816 12. Known problems *netbeans-problems*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
817
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
818 NUL bytes are not possible. For editor -> IDE they will appear as NL
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
819 characters. For IDE -> editor they cannot be inserted.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
820
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
821
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
822 vim:tw=78:ts=8:ft=help:norl: