annotate runtime/doc/remote.txt @ 5146:6ec6b7ff2d43 v7.4a

Vim 7.4a BETA release.
author Bram Moolenaar <bram@vim.org>
date Sat, 06 Jul 2013 15:44:11 +0200
parents 073ff46fe397
children 09c88160095d
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
5146
6ec6b7ff2d43 Vim 7.4a BETA release.
Bram Moolenaar <bram@vim.org>
parents: 2577
diff changeset
1 *remote.txt* For Vim version 7.4a. Last change: 2008 May 24
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
2
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
3
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
4 VIM REFERENCE MANUAL by Bram Moolenaar
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
5
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
6
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
7 Vim client-server communication *client-server*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
8
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
9 1. Common functionality |clientserver|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
10 2. X11 specific items |x11-clientserver|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
11 3. MS-Windows specific items |w32-clientserver|
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
12
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
13 {Vi does not have any of these commands}
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
14
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
15 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
16 1. Common functionality *clientserver*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
17
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
18 When compiled with the |+clientserver| option, Vim can act as a command
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
19 server. It accepts messages from a client and executes them. At the same
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
20 time, Vim can function as a client and send commands to a Vim server.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
21
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
22 The following command line arguments are available:
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
23
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
24 argument meaning ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
25
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
26 --remote [+{cmd}] {file} ... *--remote*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
27 Open the file list in a remote Vim. When
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
28 there is no Vim server, execute locally.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
29 There is one optional init command: +{cmd}.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
30 This must be an Ex command that can be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
31 followed by "|".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
32 The rest of the command line is taken as the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
33 file list. Thus any non-file arguments must
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
34 come before this.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
35 You cannot edit stdin this way |--|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
36 The remote Vim is raised. If you don't want
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
37 this use >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
38 vim --remote-send "<C-\><C-N>:n filename<CR>"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
39 < --remote-silent [+{cmd}] {file} ... *--remote-silent*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
40 As above, but don't complain if there is no
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 server and the file is edited locally.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 --remote-wait [+{cmd}] {file} ... *--remote-wait*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 As --remote, but wait for files to complete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 (unload) in remote Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 --remote-wait-silent [+{cmd}] {file} ... *--remote-wait-silent*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 As --remote-wait, but don't complain if there
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 is no server.
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
48 *--remote-tab*
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
49 --remote-tab Like --remote but open each file in a new
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
50 tabpage.
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
51 *--remote-tab-silent*
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
52 --remote-tab-silent Like --remote-silent but open each file in a
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
53 new tabpage.
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
54 *--remote-tab-wait*
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
55 --remote-tab-wait Like --remote-wait but open each file in a new
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
56 tabpage.
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
57
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
58 *--remote-tab-wait-silent*
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
59 --remote-tab-wait-silent Like --remote-wait-silent but open each file
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
60 in a new tabpage.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
61 *--servername*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 --servername {name} Become the server {name}. When used together
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 with one of the --remote commands: connect to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 server {name} instead of the default (see
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 below).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 *--remote-send*
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 1276
diff changeset
67 --remote-send {keys} Send {keys} to server and exit. The {keys}
18ee39301b82 updated for version 7.2a
vimboss
parents: 1276
diff changeset
68 are not mapped. Special key names are
18ee39301b82 updated for version 7.2a
vimboss
parents: 1276
diff changeset
69 recognized, e.g., "<CR>" results in a CR
18ee39301b82 updated for version 7.2a
vimboss
parents: 1276
diff changeset
70 character.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
71 *--remote-expr*
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 237
diff changeset
72 --remote-expr {expr} Evaluate {expr} in server and print the result
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
73 on stdout.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
74 *--serverlist*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 --serverlist Output a list of server names.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78 Examples ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80 Edit "file.txt" in an already running GVIM server: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 gvim --remote file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83 Edit "file.txt" in an already running server called FOOBAR: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 gvim --servername FOOBAR --remote file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86 Edit "file.txt" in server "FILES" if it exists, become server "FILES"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 otherwise: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 gvim --servername FILES --remote-silent file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90 This doesn't work, all arguments after --remote will be used as file names: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 gvim --remote --servername FOOBAR file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93 Edit file "+foo" in a remote server (note the use of "./" to avoid the special
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 meaning of the leading plus): >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
95 vim --remote ./+foo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97 Tell the remote server "BLA" to write all files and exit: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 vim --servername BLA --remote-send '<C-\><C-N>:wqa<CR>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101 SERVER NAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103 By default Vim will try to register the name under which it was invoked (gvim,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 egvim ...). This can be overridden with the --servername argument. If the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
105 specified name is not available, a postfix is applied until a free name is
237
73354c21f1e4 updated for version 7.0066
vimboss
parents: 7
diff changeset
106 encountered, i.e. "gvim1" for the second invocation of gvim on a particular
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
107 X-server. The resulting name is available in the servername builtin variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 |v:servername|. The case of the server name is ignored, thus "gvim" and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 "GVIM" are considered equal.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111 When Vim is invoked with --remote, --remote-wait or --remote-send it will try
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 to locate the server name determined by the invocation name and --servername
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 argument as described above. If an exact match is not available, the first
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 server with the number postfix will be used. If a name with the number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 postfix is specified with the --servername argument, it must match exactly.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117 If no server can be located and --remote or --remote-wait was used, Vim will
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 start up according to the rest of the command line and do the editing by
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
119 itself. This way it is not necessary to know whether gvim is already started
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
120 when sending command to it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122 The --serverlist argument will cause Vim to print a list of registered command
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 servers on the standard output (stdout) and exit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125 Win32 Note: Making the Vim server go to the foreground doesn't always work,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 because MS-Windows doesn't allow it. The client will move the server to the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 foreground when using the --remote or --remote-wait argument and the server
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
128 name starts with "g".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131 REMOTE EDITING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133 The --remote argument will cause a |:drop| command to be constructed from the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 rest of the command line and sent as described above.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 The --remote-wait argument does the same thing and additionally sets up to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 wait for each of the files to have been edited. This uses the BufUnload
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 event, thus as soon as a file has been unloaded, Vim assumes you are done
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 editing it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
139 Note that the --remote and --remote-wait arguments will consume the rest of
237
73354c21f1e4 updated for version 7.0066
vimboss
parents: 7
diff changeset
140 the command line. I.e. all remaining arguments will be regarded as filenames.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
141 You can not put options there!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144 FUNCTIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 *E240* *E573*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 There are a number of Vim functions for scripting the command server. See
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 the description in |eval.txt| or use CTRL-] on the function name to jump to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 the full explanation.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
149
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150 synopsis explanation ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 remote_expr( server, string, idvar) send expression
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 remote_send( server, string, idvar) send key sequence
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 serverlist() get a list of available servers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 remote_peek( serverid, retvar) check for reply string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 remote_read( serverid) read reply string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 server2client( serverid, string) send reply string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 remote_foreground( server) bring server to the front
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159 See also the explanation of |CTRL-\_CTRL-N|. Very useful as a leading key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 sequence.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 The {serverid} for server2client() can be obtained with expand("<client>")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 2. X11 specific items *x11-clientserver*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 *E247* *E248* *E251* *E258* *E277*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167 The communication between client and server goes through the X server. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 display of the Vim server must be specified. The usual protection of the X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 server is used, you must be able to open a window on the X server for the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 communication to work. It is possible to communicate between different
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
171 systems.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173 By default, a GUI Vim will register a name on the X-server by which it can be
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 addressed for subsequent execution of injected strings. Vim can also act as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
175 a client and send strings to other instances of Vim on the same X11 display.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
177 When an X11 GUI Vim (gvim) is started, it will try to register a send-server
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 name on the 'VimRegistry' property on the root window.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
179
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180 A non GUI Vim with access to the X11 display (|xterm-clipboard| enabled), can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 also act as a command server if a server name is explicitly given with the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 --servername argument.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
183
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184 An empty --servername argument will cause the command server to be disabled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186 To send commands to a Vim server from another application, read the source
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 file src/if_xcmdsrv.c, it contains some hints about the protocol used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 3. Win32 specific items *w32-clientserver*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192 Every Win32 Vim can work as a server, also in the console. You do not need a
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 version compiled with OLE. Windows messages are used, this works on any
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
194 version of MS-Windows. But only communication within one system is possible.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196 Since MS-Windows messages are used, any other application should be able to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 communicate with a Vim server. An alternative is using the OLE functionality
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 |ole-interface|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200 When using gvim, the --remote-wait only works properly this way: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202 start /w gvim --remote-wait file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 <
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 vim:tw=78:sw=4:ts=8:ft=help:norl: