comparison runtime/doc/eval.txt @ 11177:76fb679a310e v8.0.0475

patch 8.0.0475: not enough testing for the client-server feature commit https://github.com/vim/vim/commit/7416f3e73ab2c4e7ae3adc2ff6e70234f7d40d2e Author: Bram Moolenaar <Bram@vim.org> Date: Sat Mar 18 18:10:13 2017 +0100 patch 8.0.0475: not enough testing for the client-server feature Problem: Not enough testing for the client-server feature. Solution: Add more tests. Add the remote_startserver() function. Fix that a locally evaluated expression uses function-local variables.
author Christian Brabandt <cb@256bit.org>
date Sat, 18 Mar 2017 18:15:04 +0100
parents d0a20101ecb2
children 13544aa85dc0
comparison
equal deleted inserted replaced
11176:93853f45b9c1 11177:76fb679a310e
2260 remote_peek({serverid} [, {retvar}]) 2260 remote_peek({serverid} [, {retvar}])
2261 Number check for reply string 2261 Number check for reply string
2262 remote_read({serverid}) String read reply string 2262 remote_read({serverid}) String read reply string
2263 remote_send({server}, {string} [, {idvar}]) 2263 remote_send({server}, {string} [, {idvar}])
2264 String send key sequence 2264 String send key sequence
2265 remote_startserver({name}) none become server {name}
2266 String send key sequence
2265 remove({list}, {idx} [, {end}]) any remove items {idx}-{end} from {list} 2267 remove({list}, {idx} [, {end}]) any remove items {idx}-{end} from {list}
2266 remove({dict}, {key}) any remove entry {key} from {dict} 2268 remove({dict}, {key}) any remove entry {key} from {dict}
2267 rename({from}, {to}) Number rename (move) file from {from} to {to} 2269 rename({from}, {to}) Number rename (move) file from {from} to {to}
2268 repeat({expr}, {count}) String repeat {expr} {count} times 2270 repeat({expr}, {count}) String repeat {expr} {count} times
2269 resolve({filename}) String get filename a shortcut points to 2271 resolve({filename}) String get filename a shortcut points to
6370 and a {serverid} for later use with remote_read() is stored 6372 and a {serverid} for later use with remote_read() is stored
6371 there. 6373 there.
6372 See also |clientserver| |RemoteReply|. 6374 See also |clientserver| |RemoteReply|.
6373 This function is not available in the |sandbox|. 6375 This function is not available in the |sandbox|.
6374 {only available when compiled with the |+clientserver| feature} 6376 {only available when compiled with the |+clientserver| feature}
6377
6375 Note: Any errors will be reported in the server and may mess 6378 Note: Any errors will be reported in the server and may mess
6376 up the display. 6379 up the display.
6377 Examples: > 6380 Examples: >
6378 :echo remote_send("gvim", ":DropAndReply ".file, "serverid"). 6381 :echo remote_send("gvim", ":DropAndReply ".file, "serverid").
6379 \ remote_read(serverid) 6382 \ remote_read(serverid)
6381 :autocmd NONE RemoteReply * 6384 :autocmd NONE RemoteReply *
6382 \ echo remote_read(expand("<amatch>")) 6385 \ echo remote_read(expand("<amatch>"))
6383 :echo remote_send("gvim", ":sleep 10 | echo ". 6386 :echo remote_send("gvim", ":sleep 10 | echo ".
6384 \ 'server2client(expand("<client>"), "HELLO")<CR>') 6387 \ 'server2client(expand("<client>"), "HELLO")<CR>')
6385 < 6388 <
6389 *remote_startserver()* *E941* *E942*
6390 remote_startserver({name})
6391 Become the server {name}. This fails if already running as a
6392 server, when |v:servername| is not empty.
6393 {only available when compiled with the |+clientserver| feature}
6394
6386 remove({list}, {idx} [, {end}]) *remove()* 6395 remove({list}, {idx} [, {end}]) *remove()*
6387 Without {end}: Remove the item at {idx} from |List| {list} and 6396 Without {end}: Remove the item at {idx} from |List| {list} and
6388 return the item. 6397 return the item.
6389 With {end}: Remove items from {idx} to {end} (inclusive) and 6398 With {end}: Remove items from {idx} to {end} (inclusive) and
6390 return a List with these items. When {idx} points to the same 6399 return a List with these items. When {idx} points to the same