annotate runtime/doc/netbeans.txt @ 49:000769ce6c9d default tip

Added tag v7-3-618 for changeset 67300faee616
author Shinji KONO <kono@ie.u-ryukyu.ac.jp>
date Wed, 01 Aug 2012 18:08:37 +0900
parents 67300faee616
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
1 *netbeans.txt* For Vim version 7.3. Last change: 2012 Jan 26
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
2
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
3
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
4 VIM REFERENCE MANUAL by Gordon Prieur et al.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
5
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
6
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
7 *socket-interface* *netbeans* *netbeans-support*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
8
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
9 Vim NetBeans Protocol: a socket interface for Vim integration into an IDE.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
10
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
11 1. Introduction |netbeans-intro|
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
12 2. Integration features |netbeans-integration|
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
13 3. Configuring Vim for NetBeans |netbeans-configure|
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
14 4. Error Messages |netbeans-messages|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
15 5. Running Vim in NetBeans mode |netbeans-run|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
16 6. NetBeans protocol |netbeans-protocol|
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
17 7. NetBeans commands |netbeans-commands|
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
18 8. Known problems |netbeans-problems|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
19 9. Debugging NetBeans protocol |netbeans-debugging|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
20 10. NetBeans External Editor
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
21 10.1. Downloading NetBeans |netbeans-download|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
22 10.2. NetBeans Key Bindings |netbeans-keybindings|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
23 10.3. Preparing NetBeans for Vim |netbeans-preparation|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
24 10.4. Obtaining the External Editor Module |obtaining-exted|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
25 10.5. Setting up NetBeans to run with Vim |netbeans-setup|
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
26
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
27 {Vi does not have any of these features}
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
28 {only available when compiled with the |+netbeans_intg| feature}
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
29
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
30 ==============================================================================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
31 1. Introduction *netbeans-intro*
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
32
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
33 The NetBeans interface was initially developed to integrate Vim into the
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
34 NetBeans Java IDE, using the external editor plugin. This NetBeans plugin no
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
35 longer exists for recent versions of NetBeans but the protocol was developed
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
36 in such a way that any IDE can use it to integrate Vim.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
37
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
38 The NetBeans protocol of Vim is a text based communication protocol, over a
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
39 classical TCP socket. There is no dependency on Java or NetBeans. Any language
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
40 or environment providing a socket interface can control Vim using this
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
41 protocol. There are existing implementations in C, C++, Python and Java. The
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
42 name NetBeans is kept today for historical reasons.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
43
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
44 Current projects using the NetBeans protocol of Vim are:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
45 - VimIntegration, description of various projects doing Vim Integration:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
46 http://www.freehackers.org/VimIntegration
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
47 - Agide, an IDE for the AAP project, written in Python:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
48 http://www.a-a-p.org
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
49 - Clewn, a gdb integration into Vim, written in C:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
50 http://clewn.sourceforge.net/
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
51 - Pyclewn, a gdb integration into Vim, written in Python:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
52 http://pyclewn.sourceforge.net/
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
53 - VimPlugin, integration of Vim inside Eclipse:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
54 http://vimplugin.sourceforge.net/wiki/pmwiki.php
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
55 - PIDA, IDE written in Python integrating Vim:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
56 http://pida.co.uk/
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
57 - VimWrapper, library to easy Vim integration into IDE:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
58 http://www.freehackers.org/VimWrapper
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
59
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
60 Check the specific project pages to see how to use Vim with these projects.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
61
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
62 In the rest of this help page, we will use the term "Vim Controller" to
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
63 describe the program controlling Vim through the NetBeans socket interface.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
64
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
65
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
66 About the NetBeans IDE ~
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
67
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
68 NetBeans is an open source Integrated Development Environment developed
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
69 jointly by Sun Microsystems, Inc. and the netbeans.org developer community.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
70 Initially just a Java IDE, NetBeans has had C, C++, and Fortran support added
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
71 in recent releases.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
72
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
73 For more information visit the main NetBeans web site http://www.netbeans.org.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
74 The External Editor is now, unfortunately, declared obsolete. See
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
75 http://externaleditor.netbeans.org.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
76
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
77 Sun Microsystems, Inc. also ships NetBeans under the name Sun ONE Studio.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
78 Visit http://www.sun.com for more information regarding the Sun ONE Studio
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
79 product line.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
80
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
81 Current releases of NetBeans provide full support for Java and limited support
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
82 for C, C++, and Fortran. Current releases of Sun ONE Studio provide full
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
83 support for Java, C, C++, and Fortran.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
84
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
85 ==============================================================================
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
86 2. Integration features *netbeans-integration*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
87
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
88 The NetBeans socket interface of Vim allows to get information from Vim or to
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
89 ask Vim to perform specific actions:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
90 - get information about buffer: buffer name, cursor position, buffer content,
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
91 etc.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
92 - be notified when buffers are open or closed
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
93 - be notified of how the buffer content is modified
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
94 - load and save files
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
95 - modify the buffer content
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
96 - installing special key bindings
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
97 - raise the window, control the window geometry
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
98
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
99 For sending key strokes to Vim or for evaluating functions in Vim, you must
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
100 use the |clientserver| interface.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
101
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
102
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
103 ==============================================================================
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
104 3. Configuring Vim for NetBeans *netbeans-configure*
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
105
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
106 For more help about installing Vim, please read |usr_90.txt| in the Vim User
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
107 Manual.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
108
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
109
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
110 On Unix:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
111 --------
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
112
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
113 When running configure without arguments the NetBeans interface should be
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
114 included. That is, if the configure check to find out if your system supports
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
115 the required features succeeds.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
116
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
117 In case you do not want the NetBeans interface you can disable it by
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
118 uncommenting a line with "--disable-netbeans" in the Makefile.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
119
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
120 Currently the NetBeans interface is supported by Vim running in a terminal and
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
121 by GVim when it is run with one of the following GUIs: GTK, GNOME, Windows,
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
122 Athena and Motif.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
123
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
124 If Motif support is required the user must supply XPM libraries. See
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
125 |workshop-xpm| for details on obtaining the latest version of XPM.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
126
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
127
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
128 On MS-Windows:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
129 --------------
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
130
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
131 The Win32 support is now in beta stage.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
132
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
133 To use XPM signs on Win32 (e.g. when using with NetBeans) you can compile
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
134 XPM by yourself or use precompiled libraries from http://iamphet.nm.ru/misc/
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
135 (for MS Visual C++) or http://gnuwin32.sourceforge.net (for MinGW).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
136
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
137 Enable debugging:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
138 -----------------
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
139
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
140 To enable debugging of Vim and of the NetBeans protocol, the "NBDEBUG" macro
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
141 needs to be defined. Search in the Makefile of the platform you are using for
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
142 "NBDEBUG" to see what line needs to be uncommented. This effectively adds
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
143 "-DNBDEBUG" to the compile command. Also see |netbeans-debugging|
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
144
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
145 ==============================================================================
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
146 4. Error Messages *netbeans-messages*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
147
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
148 These error messages are specific to NetBeans socket protocol:
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
149
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
150 *E463*
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
151 Region is guarded, cannot modify
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
152 The Vim Controller has defined guarded areas in the text,
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
153 which you cannot change. Also sets the current buffer, if
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
154 necessary.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
155
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
156 *E532*
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
157 The defineAnnoType highlighting color name is too long
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
158 The maximum length of the "fg" or "bg" color argument in the
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
159 defineAnnoType command is 32 characters.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
160 New in version 2.5.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
161
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
162 *E656*
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
163 Writes of unmodified buffers forbidden
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
164 Writes of unmodified buffers that were opened from the
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
165 Vim Controller are not possible.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
166
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
167 *E657*
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
168 Partial writes disallowed
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
169 Partial writes for buffers that were opened from the
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
170 Vim Controller are not allowed.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
171
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
172 *E658*
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
173 Connection lost for this buffer
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
174 The Vim Controller has become confused about the state of
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
175 this file. Rather than risk data corruption, it has severed
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
176 the connection for this file. Vim will take over
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
177 responsibility for saving changes to this file and the
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
178 Vim Controller will no longer know of these changes.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
179
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
180 *E744*
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
181 Read-only file
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
182 Vim normally allows changes to a read-only file and only
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
183 enforces the read-only rule if you try to write the file.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
184 However, NetBeans does not let you make changes to a file
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
185 which is read-only and becomes confused if Vim does this.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
186 So Vim does not allow modifications to files when run
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
187 in NetBeans mode.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
188
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
189 ==============================================================================
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
190 5. Running Vim in NetBeans mode *netbeans-run*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
191
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
192 There are two different ways to run Vim in NetBeans mode:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
193
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
194 + an IDE may start Vim with the |-nb| command line argument
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
195 + NetBeans can be started from within Vim with the |:nbstart| command
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
196
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
197 *netbeans-parameters*
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
198 Three forms can be used to setup the NetBeans connection parameters.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
199 When started from the command line, the |-nb| command line argument may be:
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
200
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
201 -nb={fname} from a file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
202 -nb:{hostname}:{addr}:{password} directly
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
203 -nb from a file or environment
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
204
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
205 When started from within Vim, the |:nbstart| optional argument may be:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
206
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
207 ={fname} from a file
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
208 :{hostname}:{addr}:{password} directly
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
209 <MISSING ARGUMENT> from a file or environment
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
210
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
211 *E660* *E668*
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
212 When NetBeans is started from the command line, for security reasons, the best
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
213 method is to write the information in a file readable only by the user. The
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
214 name of the file can be passed with the "-nb={fname}" argument or, when "-nb"
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
215 is used without a parameter, the environment variable "__NETBEANS_CONINFO".
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
216 The file must contain these three lines, in any order:
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
217
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
218 host={hostname}
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
219 port={addr}
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
220 auth={password}
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
221
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
222 Other lines are ignored. The Vim Controller is responsible for deleting the
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
223 file afterwards.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
224
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
225 {hostname} is the name of the machine where Vim Controller is running. When
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
226 omitted the environment variable "__NETBEANS_HOST" is used or the default
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
227 "localhost".
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
228
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
229 {addr} is the port number for the NetBeans interface. When omitted the
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
230 environment variable "__NETBEANS_SOCKET" is used or the default 3219.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
231
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
232 {password} is the password for connecting to NetBeans. When omitted the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
233 environment variable "__NETBEANS_VIM_PASSWORD" is used or "changeme".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
234
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
235 Vim will initiate a socket connection (client side) to the specified host and
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
236 port upon startup. The password will be sent with the AUTH event when the
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
237 connection has been established.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
238
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
239
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
240 ==============================================================================
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
241 6. NetBeans protocol *netbeans-protocol*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
242
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
243 The communication between the Vim Controller and Vim uses plain text
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
244 messages. This protocol was first designed to work with the external editor
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
245 module of NetBeans. Later it was extended to work with Agide (A-A-P GUI IDE,
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
246 see http://www.a-a-p.org) and then with other IDE. The extensions are marked
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
247 with "version 2.1".
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
248
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
249 Version 2.2 of the protocol has several minor changes which should only affect
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
250 NetBeans users (ie, not Agide users). However, a bug was fixed which could
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
251 cause confusion. The netbeans_saved() function sent a "save" protocol
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
252 command. In protocol version 2.1 and earlier this was incorrectly interpreted
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
253 as a notification that a write had taken place. In reality, it told NetBeans
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
254 to save the file so multiple writes were being done. This caused various
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
255 problems and has been fixed in 2.2. To decrease the likelihood of this
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
256 confusion happening again, netbeans_saved() has been renamed to
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
257 netbeans_save_buffer().
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
258
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
259 We are now at version 2.5. For the differences between 2.4 and 2.5 search for
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
260 "2.5" below.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
261
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
262 The messages are currently sent over a socket. Since the messages are in
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
263 plain UTF-8 text this protocol could also be used with any other communication
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
264 mechanism.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
265
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
266 Netbeans messages are processed when Vim is idle, waiting for user input.
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
267 When Vim is run in non-interactive mode, for example when running an automated
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
268 test case that sources a Vim script, the idle loop may not be called often
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
269 enough. In that case, insert |:sleep| commands in the Vim script. The |:sleep|
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
270 command does invoke Netbeans messages processing.
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
271
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
272 6.1 Kinds of messages |nb-messages|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
273 6.2 Terms |nb-terms|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
274 6.3 Commands |nb-commands|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
275 6.4 Functions and Replies |nb-functions|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
276 6.5 Events |nb-events|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
277 6.6 Special messages |nb-special|
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
278 6.7 Protocol errors |nb-protocol_errors|
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
279
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
280
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
281 6.1 Kinds of messages *nb-messages*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
282
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
283 There are four kinds of messages:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
284
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
285 kind direction comment ~
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
286 Command IDE -> editor no reply necessary
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
287 Function IDE -> editor editor must send back a reply
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
288 Reply editor -> IDE only in response to a Function
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
289 Event editor -> IDE no reply necessary
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
290
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
291 The messages are sent as a single line with a terminating newline character.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
292 Arguments are separated by a single space. The first item of the message
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
293 depends on the kind of message:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
294
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
295 kind first item example ~
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
296 Command bufID:name!seqno 11:showBalloon!123 "text"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
297 Function bufID:name/seqno 11:getLength/123
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
298 Reply seqno 123 5000
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
299 Event bufID:name=seqno 11:keyCommand=123 "S-F2"
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
300
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
301
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
302
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
303 6.2 Terms *nb-terms*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
304
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
305 bufID Buffer number. A message may be either for a specific buffer
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
306 or generic. Generic messages use a bufID of zero. NOTE: this
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
307 buffer ID is assigned by the IDE, it is not Vim's buffer
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
308 number. The bufID must be a sequentially rising number,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
309 starting at one.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
310
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
311 seqno The IDE uses a sequence number for Commands and Functions. A
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
312 Reply must use the sequence number of the Function that it is
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
313 associated with. A zero sequence number can be used for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
314 Events (the seqno of the last received Command or Function can
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
315 also be used).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
316
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
317 string Argument in double quotes. Text is in UTF-8 encoding. This
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
318 means ASCII is passed as-is. Special characters are
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
319 represented with a backslash:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
320 \" double quote
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
321 \n newline
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
322 \r carriage-return
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
323 \t tab (optional, also works literally)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
324 \\ backslash
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
325 NUL bytes are not allowed!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
326
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
327 boolean Argument with two possible values:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
328 T true
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
329 F false
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
330
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
331 number Argument with a decimal number.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
332
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
333 color Argument with either a decimal number, "none" (without the
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
334 quotes) or the name of a color (without the quotes) defined
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
335 both in the color list in |highlight-ctermfg| and in the color
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
336 list in |gui-colors|.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
337 New in version 2.5.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
338
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
339 offset A number argument that indicates a byte position in a buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
340 The first byte has offset zero. Line breaks are counted for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
341 how they appear in the file (CR/LF counts for two bytes).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
342 Note that a multi-byte character is counted for the number of
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
343 bytes it takes.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
344
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
345 lnum/col Argument with a line number and column number position. The
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
346 line number starts with one, the column is the byte position,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
347 starting with zero. Note that a multi-byte character counts
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
348 for several columns.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
349
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
350 pathname String argument: file name with full path.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
351
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
352
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
353 6.3 Commands *nb-commands*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
354
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
355 actionMenuItem Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
356
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
357 actionSensitivity
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
358 Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
359
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
360 addAnno serNum typeNum off len
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
361 Place an annotation in this buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
362 Arguments:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
363 serNum number serial number of this placed
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
364 annotation, used to be able to remove
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
365 it
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
366 typeNum number sequence number of the annotation
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
367 defined with defineAnnoType for this
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
368 buffer
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
369 off number offset where annotation is to be placed
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
370 len number not used
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
371 In version 2.1 "lnum/col" can be used instead of "off".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
372
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
373 balloonResult text
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
374 Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
375
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
376 close Close the buffer. This leaves us without current buffer, very
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
377 dangerous to use!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
378
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
379 create Creates a buffer without a name. Replaces the current buffer
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
380 (it's hidden when it was changed).
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
381 The Vim Controller should use this as the first command for a
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
382 file that is being opened. The sequence of commands could be:
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
383 create
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
384 setCaretListener (ignored)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
385 setModified (no effect)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
386 setContentType (ignored)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
387 startDocumentListen
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
388 setTitle
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
389 setFullName
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
390
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
391 defineAnnoType typeNum typeName tooltip glyphFile fg bg
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
392 Define a type of annotation for this buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
393 Arguments:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
394 typeNum number sequence number (not really used)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
395 typeName string name that identifies this annotation
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
396 tooltip string not used
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
397 glyphFile string name of icon file
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
398 fg color foreground color for line highlighting
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
399 bg color background color for line highlighting
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
400 Vim will define a sign for the annotation.
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
401 When color is a number, this is the "#rrggbb" Red, Green and
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
402 Blue values of the color (see |gui-colors|) and the
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
403 highlighting is only defined for GVim.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
404 When color is a name, this color is defined both for Vim
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
405 running in a color terminal and for GVim.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
406 When both "fg" and "bg" are "none" no line highlighting is
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
407 used (new in version 2.1).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
408 When "glyphFile" is empty, no text sign is used (new in
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
409 version 2.1).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
410 When "glyphFile" is one or two characters long, a text sign is
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
411 defined (new in version 2.1).
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
412 Note: the annotations will be defined in sequence, and the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
413 sequence number is later used with addAnno.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
414
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
415 editFile pathname
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
416 Set the name for the buffer and edit the file "pathname", a
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
417 string argument.
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
418 Normal way for the IDE to tell the editor to edit a file.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
419
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
420 You must set a bufId different of 0 with this command to
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
421 assign a bufId to the buffer. It will trigger an event
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
422 fileOpened with a bufId of 0 but the buffer has been assigned.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
423
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
424 If the IDE is going to pass the file text to the editor use
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
425 these commands instead:
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
426 setFullName
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
427 insert
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
428 initDone
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
429 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
430
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
431 enableBalloonEval
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
432 Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
433
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
434 endAtomic End an atomic operation. The changes between "startAtomic"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
435 and "endAtomic" can be undone as one operation. But it's not
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
436 implemented yet. Redraw when necessary.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
437
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
438 guard off len
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
439 Mark an area in the buffer as guarded. This means it cannot
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
440 be edited. "off" and "len" are numbers and specify the text
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
441 to be guarded.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
442
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
443 initDone Mark the buffer as ready for use. Implicitly makes the buffer
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
444 the current buffer. Fires the BufReadPost autocommand event.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
445
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
446 insertDone
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
447 Sent by Vim Controller to tell Vim an initial file insert is
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
448 done. This triggers a read message being printed. Prior to
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
449 version 2.3, no read messages were displayed after opening a
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
450 file. New in version 2.3.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
451
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
452 moveAnnoToFront serNum
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
453 Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
454
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
455 netbeansBuffer isNetbeansBuffer
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
456 If "isNetbeansBuffer" is "T" then this buffer is "owned" by
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
457 NetBeans.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
458 New in version 2.2.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
459
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
460 putBufferNumber pathname
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
461 Associate a buffer number with the Vim buffer by the name
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
462 "pathname", a string argument. To be used when the editor
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
463 reported editing another file to the IDE and the IDE needs to
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
464 tell the editor what buffer number it will use for this file.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
465 Also marks the buffer as initialized.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
466 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
467
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
468 raise Bring the editor to the foreground.
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
469 Only when Vim is run with a GUI.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
470 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
471
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
472 removeAnno serNum
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
473 Remove a previously place annotation for this buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
474 "serNum" is the same number used in addAnno.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
475
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
476 save Save the buffer when it was modified. The other side of the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
477 interface is expected to write the buffer and invoke
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
478 "setModified" to reset the "changed" flag of the buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
479 The writing is skipped when one of these conditions is true:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
480 - 'write' is not set
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
481 - the buffer is read-only
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
482 - the buffer does not have a file name
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
483 - 'buftype' disallows writing
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
484 New in version 2.2.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
485
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
486 saveDone
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
487 Sent by Vim Controller to tell Vim a save is done. This
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
488 triggers a save message being printed. Prior to version 2.3,
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
489 no save messages were displayed after a save.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
490 New in version 2.3.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
491
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
492 setAsUser Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
493
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
494 setBufferNumber pathname
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
495 Associate a buffer number with Vim buffer by the name
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
496 "pathname". To be used when the editor reported editing
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
497 another file to the IDE and the IDE needs to tell the editor
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
498 what buffer number it will use for this file.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
499 Has the side effect of making the buffer the current buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
500 See "putBufferNumber" for a more useful command.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
501
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
502 setContentType
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
503 Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
504
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
505 setDot off Make the buffer the current buffer and set the cursor at the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
506 specified position. If the buffer is open in another window
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
507 than make that window the current window.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
508 If there are folds they are opened to make the cursor line
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
509 visible.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
510 In version 2.1 "lnum/col" can be used instead of "off".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
511
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
512 setExitDelay seconds
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
513 Set the delay for exiting to "seconds", a number.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
514 This delay is used to give the IDE a chance to handle things
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
515 before really exiting. The default delay is two seconds.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
516 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
517 Obsolete in version 2.3.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
518
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
519 setFullName pathname
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
520 Set the file name to be used for a buffer to "pathname", a
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
521 string argument.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
522 Used when the IDE wants to edit a file under control of the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
523 IDE. This makes the buffer the current buffer, but does not
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
524 read the file. "insert" commands will be used next to set the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
525 contents.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
526
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
527 setLocAndSize Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
528
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
529 setMark Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
530
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
531 setModified modified
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
532 When the boolean argument "modified" is "T" mark the buffer as
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
533 modified, when it is "F" mark it as unmodified.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
534
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
535 setModtime time
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
536 Update a buffers modification time after the file has been
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
537 saved directly by the Vim Controller.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
538 New in version 2.3.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
539
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
540 setReadOnly
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
541 Set a file as readonly
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
542 Implemented in version 2.3.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
543
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
544 setStyle Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
545
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
546 setTitle name
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
547 Set the title for the buffer to "name", a string argument.
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
548 The title is only used for the Vim Controller functions, not
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
549 by Vim.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
550
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
551 setVisible visible
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
552 When the boolean argument "visible" is "T", goto the buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
553 The "F" argument does nothing.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
554
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
555 showBalloon text
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
556 Show a balloon (popup window) at the mouse pointer position,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
557 containing "text", a string argument. The balloon should
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
558 disappear when the mouse is moved more than a few pixels.
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
559 Only when Vim is run with a GUI.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
560 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
561
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
562 specialKeys
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
563 Map a set of keys (mostly function keys) to be passed back
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
564 to the Vim Controller for processing. This lets regular IDE
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
565 hotkeys be used from Vim.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
566 Implemented in version 2.3.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
567
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
568 startAtomic Begin an atomic operation. The screen will not be updated
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
569 until "endAtomic" is given.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
570
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
571 startCaretListen
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
572 Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
573
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
574 startDocumentListen
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
575 Mark the buffer to report changes to the IDE with the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
576 "insert" and "remove" events. The default is to report
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
577 changes.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
578
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
579 stopCaretListen
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
580 Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
581
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
582 stopDocumentListen
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
583 Mark the buffer to stop reporting changes to the IDE.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
584 Opposite of startDocumentListen.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
585 NOTE: if "netbeansBuffer" was used to mark this buffer as a
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
586 NetBeans buffer, then the buffer is deleted in Vim. This is
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
587 for compatibility with Sun Studio 10.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
588
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
589 unguard off len
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
590 Opposite of "guard", remove guarding for a text area.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
591 Also sets the current buffer, if necessary.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
592
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
593 version Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
594
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
595
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
596 6.4 Functions and Replies *nb-functions*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
597
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
598 getDot Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
599
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
600 getCursor Return the current buffer and cursor position.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
601 The reply is:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
602 seqno bufID lnum col off
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
603 seqno = sequence number of the function
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
604 bufID = buffer ID of the current buffer (if this is unknown -1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
605 is used)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
606 lnum = line number of the cursor (first line is one)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
607 col = column number of the cursor (in bytes, zero based)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
608 off = offset of the cursor in the buffer (in bytes)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
609 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
610
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
611 getLength Return the length of the buffer in bytes.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
612 Reply example for a buffer with 5000 bytes:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
613 123 5000
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
614 TODO: explain use of partial line.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
615
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
616 getMark Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
617
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
618 getAnno serNum
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
619 Return the line number of the annotation in the buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
620 Argument:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
621 serNum serial number of this placed annotation
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
622 The reply is:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
623 123 lnum line number of the annotation
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
624 123 0 invalid annotation serial number
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
625 New in version 2.4.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
626
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
627 getModified When a buffer is specified: Return zero if the buffer does not
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
628 have changes, one if it does have changes.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
629 When no buffer is specified (buffer number zero): Return the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
630 number of buffers with changes. When the result is zero it's
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
631 safe to tell Vim to exit.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
632 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
633
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
634 getText Return the contents of the buffer as a string.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
635 Reply example for a buffer with two lines
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
636 123 "first line\nsecond line\n"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
637 NOTE: docs indicate an offset and length argument, but this is
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
638 not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
639
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
640 insert off text
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
641 Insert "text" before position "off". "text" is a string
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
642 argument, "off" a number.
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
643 "text" should have a "\n" (newline) at the end of each line.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
644 Or "\r\n" when 'fileformat' is "dos". When using "insert" in
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
645 an empty buffer Vim will set 'fileformat' accordingly.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
646 When "off" points to the start of a line the text is inserted
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
647 above this line. Thus when "off" is zero lines are inserted
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
648 before the first line.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
649 When "off" points after the start of a line, possibly on the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
650 NUL at the end of a line, the first line of text is appended
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
651 to this line. Further lines come below it.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
652 Possible replies:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
653 123 no problem
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
654 123 !message failed
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
655 Note that the message in the reply is not quoted.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
656 Also sets the current buffer, if necessary.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
657 Does not move the cursor to the changed text.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
658 Resets undo information.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
659
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
660 remove off length
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
661 Delete "length" bytes of text at position "off". Both
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
662 arguments are numbers.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
663 Possible replies:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
664 123 no problem
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
665 123 !message failed
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
666 Note that the message in the reply is not quoted.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
667 Also sets the current buffer, if necessary.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
668
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
669 saveAndExit Perform the equivalent of closing Vim: ":confirm qall".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
670 If there are no changed files or the user does not cancel the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
671 operation Vim exits and no result is sent back. The IDE can
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
672 consider closing the connection as a successful result.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
673 If the user cancels the operation the number of modified
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
674 buffers that remains is returned and Vim does not exit.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
675 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
676
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
677
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
678 6.5 Events *nb-events*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
679
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
680 balloonEval off len type
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
681 The mouse pointer rests on text for a short while. When "len"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
682 is zero, there is no selection and the pointer is at position
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
683 "off". When "len" is non-zero the text from position "off" to
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
684 "off" + "len" is selected.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
685 Only sent after "enableBalloonEval" was used for this buffer.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
686 "type" is not yet defined.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
687 Not implemented yet.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
688
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
689 balloonText text
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
690 Used when 'ballooneval' is set and the mouse pointer rests on
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
691 some text for a moment. "text" is a string, the text under
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
692 the mouse pointer.
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
693 Only when Vim is run with a GUI.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
694 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
695
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
696 buttonRelease button lnum col
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
697 Report which button was pressed and the location of the cursor
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
698 at the time of the release. Only for buffers that are owned
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
699 by the Vim Controller. This event is not sent if the button
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
700 was released while the mouse was in the status line or in a
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
701 separator line. If col is less than 1 the button release was
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
702 in the sign area.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
703 New in version 2.2.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
704
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
705 disconnect
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
706 Tell the Vim Controller that Vim is exiting and not to try and
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
707 read or write more commands.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
708 New in version 2.3.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
709
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
710 fileClosed Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
711
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
712 fileModified Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
713
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
714 fileOpened pathname open modified
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
715 A file was opened by the user.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
716 Arguments:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
717 pathname string name of the file
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
718 open boolean always "T"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
719 modified boolean always "F"
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
720
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
721 geometry cols rows x y
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
722 Report the size and position of the editor window.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
723 Arguments:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
724 cols number number of text columns
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
725 rows number number of text rows
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
726 x number pixel position on screen
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
727 y number pixel position on screen
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
728 Only works for Motif.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
729
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
730 insert off text
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
731 Text "text" has been inserted in Vim at position "off".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
732 Only fired when enabled, see "startDocumentListen".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
733
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
734 invokeAction Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
735
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
736 keyCommand keyName
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
737 Reports a special key being pressed with name "keyName", which
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
738 is a string.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
739 Supported key names:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
740 F1 function key 1
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
741 F2 function key 2
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
742 ...
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
743 F12 function key 12
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
744
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
745 ' ' space (without the quotes)
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
746 ! exclamation mark
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
747 ... any other ASCII printable character
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
748 ~ tilde
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
749
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
750 X any unrecognized key
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
751
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
752 The key may be prepended by "C", "S" and/or "M" for Control,
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
753 Shift and Meta (Alt) modifiers. If there is a modifier a dash
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
754 is used to separate it from the key name. For example:
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
755 "C-F2".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
756 ASCII characters are new in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
757
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
758 keyAtPos keyName lnum/col
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
759 Like "keyCommand" and also report the line number and column
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
760 of the cursor.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
761 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
762
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
763 killed A file was deleted or wiped out by the user and the buffer
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
764 annotations have been removed. The bufID number for this
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
765 buffer has become invalid. Only for files that have been
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
766 assigned a bufID number by the IDE.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
767
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
768 newDotAndMark off off
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
769 Reports the position of the cursor being at "off" bytes into
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
770 the buffer. Only sent just before a "keyCommand" event.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
771
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
772 quit Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
773
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
774 remove off len
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
775 Text was deleted in Vim at position "off" with byte length
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
776 "len".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
777 Only fired when enabled, see "startDocumentListen".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
778
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
779 revert Not implemented.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
780
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
781 save The buffer has been saved and is now unmodified.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
782 Only fired when enabled, see "startDocumentListen".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
783
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
784 startupDone The editor has finished its startup work and is ready for
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
785 editing files.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
786 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
787
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
788 unmodified The buffer is now unmodified.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
789 Only fired when enabled, see "startDocumentListen".
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
790
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
791 version vers Report the version of the interface implementation. Vim
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
792 reports "2.4" (including the quotes).
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
793
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
794
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
795 6.6 Special messages *nb-special*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
796
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
797 These messages do not follow the style of the messages above. They are
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
798 terminated by a newline character.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
799
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
800 ACCEPT Not used.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
801
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
802 AUTH password editor -> IDE: First message that the editor sends to the IDE.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
803 Must contain the password for the socket server, as specified
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
804 with the |-nb| argument. No quotes are used!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
805
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
806 DISCONNECT IDE -> editor: break the connection. The editor will exit.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
807 The IDE must only send this message when there are no unsaved
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
808 changes!
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
809
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
810 DETACH IDE -> editor: break the connection without exiting the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
811 editor. Used when the IDE exits without bringing down the
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
812 editor as well.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
813 New in version 2.1.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
814
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
815 REJECT Not used.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
816
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
817
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
818 6.7 Protocol errors *nb-protocol_errors*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
819
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
820 These errors occur when a message violates the protocol:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
821 *E627* *E628* *E629* *E630* *E631* *E632* *E633* *E634* *E635* *E636*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
822 *E637* *E638* *E639* *E640* *E641* *E642* *E643* *E644* *E645* *E646*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
823 *E647* *E648* *E649* *E650* *E651* *E652* *E653* *E654*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
824
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
825
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
826 ==============================================================================
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
827 7. NetBeans commands *netbeans-commands*
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
828
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
829 *:nbstart* *E511* *E838*
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
830 :nbs[tart] {connection} Start a new Netbeans session with {connection} as the
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
831 socket connection parameters. The format of
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
832 {connection} is described in |netbeans-parameters|.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
833 At any time, one may check if the netbeans socket is
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
834 connected by running the command:
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
835 ':echo has("netbeans_enabled")'
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
836
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
837 *:nbclose*
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
838 :nbc[lose] Close the current NetBeans session. Remove all placed
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
839 signs.
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
840
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
841 *:nbkey*
48
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
842 :nb[key] {key} Pass the {key} to the Vim Controller for processing.
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
843 When a hot-key has been installed with the specialKeys
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
844 command, this command can be used to generate a hotkey
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
845 message to the Vim Controller.
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
846 This command can also be used to pass any text to the
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
847 Vim Controller. It is used by Pyclewn, for example,
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
848 to build the complete set of gdb commands as Vim user
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
849 commands.
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
850 The events newDotAndMark, keyCommand and keyAtPos are
67300faee616 v7-3-618
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 39
diff changeset
851 generated (in this order).
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
852
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
853
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
854 ==============================================================================
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
855 8. Known problems *netbeans-problems*
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
856
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
857 NUL bytes are not possible. For editor -> IDE they will appear as NL
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
858 characters. For IDE -> editor they cannot be inserted.
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
859
39
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
860 A NetBeans session may be initiated with Vim running in a terminal, and
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
861 continued later in a GUI environment after running the |:gui| command. In this
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
862 case, the highlighting defined for the NetBeans annotations may be cleared
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
863 when the ":gui" command sources .gvimrc and this file loads a colorscheme
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
864 that runs the command ":highlight clear".
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
865 New in version 2.5.
c16898406ff2 synchorinize version 7.3.081
one@zeus.cr.ie.u-ryukyu.ac.jp
parents: 34
diff changeset
866
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
867
34
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
868 ==============================================================================
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
869 9. Debugging NetBeans protocol *netbeans-debugging*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
870
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
871 To debug the Vim protocol, you must first compile Vim with debugging support
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
872 and NetBeans debugging support. See |netbeans-configure| for instructions
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
873 about Vim compiling and how to enable debug support.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
874
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
875 When running Vim, set the following environment variables:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
876
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
877 export SPRO_GVIM_DEBUG=netbeans.log
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
878 export SPRO_GVIM_DLEVEL=0xffffffff
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
879
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
880 Vim will then log all the incoming and outgoing messages of the NetBeans
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
881 protocol to the file netbeans.log .
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
882
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
883 The content of netbeans.log after a session looks like this:
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
884 Tue May 20 17:19:27 2008
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
885 EVT: 0:startupDone=0
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
886 CMD 1: (1) create
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
887 CMD 2: (1) setTitle "testfile1.txt"
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
888 CMD 3: (1) setFullName "testfile1.txt"
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
889 EVT(suppressed): 1:remove=3 0 -1
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
890 EVT: 1:fileOpened=0 "d:\\work\\vimWrapper\\vimWrapper2\\pyvimwrapper\\tests\\testfile1.txt" T F
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
891 CMD 4: (1) initDone
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
892 FUN 5: (0) getCursor
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
893 REP 5: 1 1 0 0
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
894 CMD 6: (2) create
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
895 CMD 7: (2) setTitle "testfile2.txt"
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
896 CMD 8: (2) setFullName "testfile2.txt"
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
897 EVT(suppressed): 2:remove=8 0 -1
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
898 EVT: 2:fileOpened=0 "d:\\work\\vimWrapper\\vimWrapper2\\pyvimwrapper\\tests\\testfile2.txt" T F
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
899 CMD 9: (2) initDone
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
900
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
901
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
902 ==============================================================================
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
903 10. NetBeans External Editor
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
904
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
905 NOTE: This information is obsolete! Only relevant if you are using an old
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
906 version of NetBeans.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
907
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
908
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
909 10.1. Downloading NetBeans *netbeans-download*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
910
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
911 The NetBeans IDE is available for download from netbeans.org. You can download
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
912 a released version, download sources, or use CVS to download the current
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
913 source tree. If you choose to download sources, follow directions from
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
914 netbeans.org on building NetBeans.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
915
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
916 Depending on the version of NetBeans you download, you may need to do further
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
917 work to get the required External Editor module. This is the module which lets
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
918 NetBeans work with gvim (or xemacs :-). See http://externaleditor.netbeans.org
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
919 for details on downloading this module if your NetBeans release does not have
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
920 it.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
921
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
922 For C, C++, and Fortran support you will also need the cpp module. See
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
923 http://cpp.netbeans.org for information regarding this module.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
924
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
925 You can also download Sun ONE Studio from Sun Microsystems, Inc for a 30 day
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
926 free trial. See http://www.sun.com for further details.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
927
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
928
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
929 10.2. NetBeans Key Bindings *netbeans-keybindings*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
930
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
931 Vim understands a number of key bindings that execute NetBeans commands.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
932 These are typically all the Function key combinations. To execute a NetBeans
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
933 command, the user must press the Pause key followed by a NetBeans key binding.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
934 For example, in order to compile a Java file, the NetBeans key binding is
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
935 "F9". So, while in vim, press "Pause F9" to compile a java file. To toggle a
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
936 breakpoint at the current line, press "Pause Shift F8".
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
937
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
938 The Pause key is Function key 21. If you don't have a working Pause key and
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
939 want to use F8 instead, use: >
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
940
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
941 :map <F8> <F21>
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
942
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
943 The External Editor module dynamically reads the NetBeans key bindings so vim
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
944 should always have the latest key bindings, even when NetBeans changes them.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
945
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
946
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
947 10.3. Preparing NetBeans for Vim *netbeans-preparation*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
948
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
949 In order for NetBeans to work with vim, the NetBeans External Editor module
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
950 must be loaded and enabled. If you have a Sun ONE Studio Enterprise Edition
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
951 then this module should be loaded and enabled. If you have a NetBeans release
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
952 you may need to find another way of obtaining this open source module.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
953
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
954 You can check if you have this module by opening the Tools->Options dialog
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
955 and drilling down to the "Modules" list (IDE Configuration->System->Modules).
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
956 If your Modules list has an entry for "External Editor" you must make sure
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
957 it is enabled (the "Enabled" property should have the value "True"). If your
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
958 Modules list has no External Editor see the next section on |obtaining-exted|.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
959
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
960
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
961 10.4. Obtaining the External Editor Module *obtaining-exted*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
962
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
963 There are 2 ways of obtaining the External Editor module. The easiest way
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
964 is to use the NetBeans Update Center to download and install the module.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
965 Unfortunately, some versions do not have this module in their update
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
966 center. If you cannot download via the update center you will need to
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
967 download sources and build the module. I will try and get the module
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
968 available from the NetBeans Update Center so building will be unnecessary.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
969 Also check http://externaleditor.netbeans.org for other availability options.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
970
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
971 To download the External Editor sources via CVS and build your own module,
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
972 see http://externaleditor.netbeans.org and http://www.netbeans.org.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
973 Unfortunately, this is not a trivial procedure.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
974
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
975
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
976 10.5. Setting up NetBeans to run with Vim *netbeans-setup*
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
977
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
978 Assuming you have loaded and enabled the NetBeans External Editor module
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
979 as described in |netbeans-preparation| all you need to do is verify that
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
980 the gvim command line is properly configured for your environment.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
981
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
982 Open the Tools->Options dialog and open the Editing category. Select the
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
983 External Editor. The right hand pane should contain a Properties tab and
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
984 an Expert tab. In the Properties tab make sure the "Editor Type" is set
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
985 to "Vim". In the Expert tab make sure the "Vim Command" is correct.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
986
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
987 You should be careful if you change the "Vim Command". There are command
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
988 line options there which must be there for the connection to be properly
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
989 set up. You can change the command name but that's about it. If your gvim
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
990 can be found by your $PATH then the VIM Command can start with "gvim". If
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
991 you don't want gvim searched from your $PATH then hard code in the full
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
992 Unix path name. At this point you should get a gvim for any source file
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
993 you open in NetBeans.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
994
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
995 If some files come up in gvim and others (with different file suffixes) come
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
996 up in the default NetBeans editor you should verify the MIME type in the
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
997 Expert tab MIME Type property. NetBeans is MIME oriented and the External
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
998 Editor will only open MIME types specified in this property.
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
999
e170173ecb68 before ack base protocol.
Shinji KONO <kono@ie.u-ryukyu.ac.jp>
parents: 0
diff changeset
1000
0
76efa0be13f1 Initial revision
atsuki
parents:
diff changeset
1001 vim:tw=78:ts=8:ft=help:norl: