1- *eval.txt* For Vim version 8.0. Last change: 2017 Mar 09
1+ *eval.txt* For Vim version 8.0. Last change: 2017 Mar 18
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -1986,16 +1986,23 @@ argidx() Number current index in the argument list
19861986arglistid([{winnr} [, {tabnr} ]]) Number argument list id
19871987argv({nr} ) String {nr} entry of the argument list
19881988argv() List the argument list
1989- assert_equal({exp} , {act} [, {msg} ]) none assert {exp} is equal to {act}
1990- assert_exception({error} [, {msg} ]) none assert {error} is in v:exception
1991- assert_fails({cmd} [, {error} ]) none assert {cmd} fails
1992- assert_false({actual} [, {msg} ]) none assert {actual} is false
1989+ assert_equal({exp} , {act} [, {msg} ])
1990+ none assert {exp} is equal to {act}
1991+ assert_exception({error} [, {msg} ])
1992+ none assert {error} is in v:exception
1993+ assert_fails({cmd} [, {error} ]) none assert {cmd} fails
1994+ assert_false({actual} [, {msg} ])
1995+ none assert {actual} is false
19931996assert_inrange({lower} , {upper} , {actual} [, {msg} ])
19941997 none assert {actual} is inside the range
1995- assert_match({pat} , {text} [, {msg} ]) none assert {pat} matches {text}
1996- assert_notequal({exp} , {act} [, {msg} ]) none assert {exp} is not equal {act}
1997- assert_notmatch({pat} , {text} [, {msg} ]) none assert {pat} not matches {text}
1998- assert_true({actual} [, {msg} ]) none assert {actual} is true
1998+ assert_match({pat} , {text} [, {msg} ])
1999+ none assert {pat} matches {text}
2000+ assert_notequal({exp} , {act} [, {msg} ])
2001+ none assert {exp} is not equal {act}
2002+ assert_notmatch({pat} , {text} [, {msg} ])
2003+ none assert {pat} not matches {text}
2004+ assert_report({msg} ) none report a test failure
2005+ assert_true({actual} [, {msg} ]) none assert {actual} is true
19992006asin({expr} ) Float arc sine of {expr}
20002007atan({expr} ) Float arc tangent of {expr}
20012008atan2({expr1} , {expr2} ) Float arc tangent of {expr1} / {expr2}
@@ -2262,6 +2269,8 @@ remote_peek({serverid} [, {retvar}])
22622269remote_read({serverid} ) String read reply string
22632270remote_send({server} , {string} [, {idvar} ])
22642271 String send key sequence
2272+ remote_startserver({name} ) none become server {name}
2273+ String send key sequence
22652274remove({list} , {idx} [, {end} ]) any remove items {idx} -{end} from {list}
22662275remove({dict} , {key} ) any remove entry {key} from {dict}
22672276rename({from} , {to} ) Number rename (move) file from {from} to {to}
@@ -2581,7 +2590,10 @@ assert_notmatch({pattern}, {actual} [, {msg}])
25812590 The opposite of `assert_match ()` : add an error message to
25822591 | v:errors | when {pattern} matches {actual} .
25832592
2584- assert_true({actual} [, {msg} ]) *assert_true()*
2593+ assert_report({msg} ) *assert_report()*
2594+ Report a test failure directly, using {msg} .
2595+
2596+ assert_true({actual} [, {msg} ]) *assert_true()*
25852597 When {actual} is not true an error message is added to
25862598 | v:errors | , like with | assert_equal() | .
25872599 A value is TRUE when it is a non-zero number. When {actual}
@@ -3923,11 +3935,14 @@ foldtext() Returns a String, to be displayed for a closed fold. This is
39233935 | v:foldstart | , | v:foldend | and | v:folddashes | variables.
39243936 The returned string looks like this: >
39253937 +-- 45 lines: abcdef
3926- < The number of dashes depends on the foldlevel. The "45" is
3927- the number of lines in the fold. "abcdef" is the text in the
3928- first non-blank line of the fold. Leading white space, "//"
3929- or "/*" and the text from the 'foldmarker' and 'commentstring'
3930- options is removed.
3938+ < The number of leading dashes depends on the foldlevel. The
3939+ "45" is the number of lines in the fold. "abcdef" is the text
3940+ in the first non-blank line of the fold. Leading white space,
3941+ "//" or "/*" and the text from the 'foldmarker' and
3942+ 'commentstring' options is removed.
3943+ When used to draw the actual foldtext, the rest of the line
3944+ will be filled with the fold char from the 'fillchars'
3945+ setting.
39313946 {not available when compiled without the | +folding | feature}
39323947
39333948foldtextresult({lnum} ) *foldtextresult()*
@@ -6372,6 +6387,7 @@ remote_send({server}, {string} [, {idvar}])
63726387 See also | clientserver | | RemoteReply | .
63736388 This function is not available in the | sandbox | .
63746389 {only available when compiled with the | +clientserver | feature}
6390+
63756391 Note: Any errors will be reported in the server and may mess
63766392 up the display.
63776393 Examples: >
@@ -6383,6 +6399,12 @@ remote_send({server}, {string} [, {idvar}])
63836399 :echo remote_send("gvim", ":sleep 10 | echo ".
63846400 \ 'server2client(expand("<client>"), "HELLO")<CR>')
63856401<
6402+ *remote_startserver()* *E941* *E942*
6403+ remote_startserver({name} )
6404+ Become the server {name} . This fails if already running as a
6405+ server, when | v:servername | is not empty.
6406+ {only available when compiled with the | +clientserver | feature}
6407+
63866408remove({list} , {idx} [, {end} ]) *remove()*
63876409 Without {end} : Remove the item at {idx} from | List | {list} and
63886410 return the item.
0 commit comments