annotate runtime/doc/remote.txt @ 10228:8a1481e59d64

commit https://github.com/vim/vim/commit/3e496b0ea31996b665824f45664dee1fdd73c4d0 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 25 22:11:48 2016 +0200 Updated runtime files.
author Christian Brabandt <cb@256bit.org>
date Sun, 25 Sep 2016 22:15:04 +0200
parents 9f48eab77d62
children 146a1e213b60
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
10198
9f48eab77d62 commit https://github.com/vim/vim/commit/bb76f24af2010943387ce696a7092175b4ecccf2
Christian Brabandt <cb@256bit.org>
parents: 6648
diff changeset
1 *remote.txt* For Vim version 8.0. Last change: 2015 Mar 01
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>"
6648
099f8b730941 Update a few runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5294
diff changeset
39 <
099f8b730941 Update a few runtime files.
Bram Moolenaar <bram@vim.org>
parents: 5294
diff changeset
40 --remote-silent [+{cmd}] {file} ... *--remote-silent*
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
41 As above, but don't complain if there is no
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
42 server and the file is edited locally.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
43 --remote-wait [+{cmd}] {file} ... *--remote-wait*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
44 As --remote, but wait for files to complete
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
45 (unload) in remote Vim.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
46 --remote-wait-silent [+{cmd}] {file} ... *--remote-wait-silent*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
47 As --remote-wait, but don't complain if there
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
48 is no server.
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
49 *--remote-tab*
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
50 --remote-tab Like --remote but open each file in a new
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
51 tabpage.
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
52 *--remote-tab-silent*
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
53 --remote-tab-silent Like --remote-silent but open each file in a
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
54 new tabpage.
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
55 *--remote-tab-wait*
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
56 --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
57 tabpage.
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
58
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
59 *--remote-tab-wait-silent*
733
a84cc6ebafca updated for version 7.0221
vimboss
parents: 714
diff changeset
60 --remote-tab-wait-silent Like --remote-wait-silent but open each file
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
61 in a new tabpage.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
62 *--servername*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
63 --servername {name} Become the server {name}. When used together
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
64 with one of the --remote commands: connect to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
65 server {name} instead of the default (see
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
66 below).
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
67 *--remote-send*
1624
18ee39301b82 updated for version 7.2a
vimboss
parents: 1276
diff changeset
68 --remote-send {keys} Send {keys} to server and exit. The {keys}
18ee39301b82 updated for version 7.2a
vimboss
parents: 1276
diff changeset
69 are not mapped. Special key names are
18ee39301b82 updated for version 7.2a
vimboss
parents: 1276
diff changeset
70 recognized, e.g., "<CR>" results in a CR
18ee39301b82 updated for version 7.2a
vimboss
parents: 1276
diff changeset
71 character.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
72 *--remote-expr*
714
0f9f4761ad9c updated for version 7.0216
vimboss
parents: 237
diff changeset
73 --remote-expr {expr} Evaluate {expr} in server and print the result
856
8cd729851562 updated for version 7.0g
vimboss
parents: 842
diff changeset
74 on stdout.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
75 *--serverlist*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
76 --serverlist Output a list of server names.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
77
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
78
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
79 Examples ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
80
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
81 Edit "file.txt" in an already running GVIM server: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
82 gvim --remote file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
83
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
84 Edit "file.txt" in an already running server called FOOBAR: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
85 gvim --servername FOOBAR --remote file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
86
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
87 Edit "file.txt" in server "FILES" if it exists, become server "FILES"
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
88 otherwise: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
89 gvim --servername FILES --remote-silent file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
90
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
91 This doesn't work, all arguments after --remote will be used as file names: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
92 gvim --remote --servername FOOBAR file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
93
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
94 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
95 meaning of the leading plus): >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
96 vim --remote ./+foo
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
97
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
98 Tell the remote server "BLA" to write all files and exit: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
99 vim --servername BLA --remote-send '<C-\><C-N>:wqa<CR>'
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
100
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
101
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
102 SERVER NAME
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
103
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
104 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
105 egvim ...). This can be overridden with the --servername argument. If the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
106 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
107 encountered, i.e. "gvim1" for the second invocation of gvim on a particular
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
108 X-server. The resulting name is available in the servername builtin variable
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
109 |v:servername|. The case of the server name is ignored, thus "gvim" and
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
110 "GVIM" are considered equal.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
111
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
112 When Vim is invoked with --remote, --remote-wait or --remote-send it will try
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
113 to locate the server name determined by the invocation name and --servername
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
114 argument as described above. If an exact match is not available, the first
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
115 server with the number postfix will be used. If a name with the number
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
116 postfix is specified with the --servername argument, it must match exactly.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
117
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
118 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
119 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
120 itself. This way it is not necessary to know whether gvim is already started
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
121 when sending command to it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
122
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
123 The --serverlist argument will cause Vim to print a list of registered command
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
124 servers on the standard output (stdout) and exit.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
125
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
126 Win32 Note: Making the Vim server go to the foreground doesn't always work,
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
127 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
128 foreground when using the --remote or --remote-wait argument and the server
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
129 name starts with "g".
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
130
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
131
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
132 REMOTE EDITING
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
133
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
134 The --remote argument will cause a |:drop| command to be constructed from the
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
135 rest of the command line and sent as described above.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
136 The --remote-wait argument does the same thing and additionally sets up to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
137 wait for each of the files to have been edited. This uses the BufUnload
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
138 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
139 editing it.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
140 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
141 the command line. I.e. all remaining arguments will be regarded as filenames.
7
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
142 You can not put options there!
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
143
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
144
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
145 FUNCTIONS
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
146 *E240* *E573*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
147 There are a number of Vim functions for scripting the command server. See
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
148 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
149 the full explanation.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
150
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
151 synopsis explanation ~
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
152 remote_expr( server, string, idvar) send expression
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
153 remote_send( server, string, idvar) send key sequence
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
154 serverlist() get a list of available servers
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
155 remote_peek( serverid, retvar) check for reply string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
156 remote_read( serverid) read reply string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
157 server2client( serverid, string) send reply string
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
158 remote_foreground( server) bring server to the front
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
159
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
160 See also the explanation of |CTRL-\_CTRL-N|. Very useful as a leading key
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
161 sequence.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
162 The {serverid} for server2client() can be obtained with expand("<client>")
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
163
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
164 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
165 2. X11 specific items *x11-clientserver*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
166 *E247* *E248* *E251* *E258* *E277*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
167
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
168 The communication between client and server goes through the X server. The
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
169 display of the Vim server must be specified. The usual protection of the X
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
170 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
171 communication to work. It is possible to communicate between different
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
172 systems.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
173
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
174 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
175 addressed for subsequent execution of injected strings. Vim can also act as
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
176 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
177
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
178 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
179 name on the 'VimRegistry' property on the root window.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
180
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
181 A non GUI Vim with access to the X11 display (|xterm-clipboard| enabled), can
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
182 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
183 --servername argument.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
184
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
185 An empty --servername argument will cause the command server to be disabled.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
186
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
187 To send commands to a Vim server from another application, read the source
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
188 file src/if_xcmdsrv.c, it contains some hints about the protocol used.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
189
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
190 ==============================================================================
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
191 3. Win32 specific items *w32-clientserver*
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
192
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
193 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
194 version compiled with OLE. Windows messages are used, this works on any
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
195 version of MS-Windows. But only communication within one system is possible.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
196
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
197 Since MS-Windows messages are used, any other application should be able to
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
198 communicate with a Vim server. An alternative is using the OLE functionality
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
199 |ole-interface|.
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
200
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
201 When using gvim, the --remote-wait only works properly this way: >
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
202
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
203 start /w gvim --remote-wait file.txt
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
204 <
3fc0f57ecb91 updated for version 7.0001
vimboss
parents:
diff changeset
205 vim:tw=78:sw=4:ts=8:ft=help:norl: