|
1 | | -*eval.txt* For Vim version 7.4. Last change: 2014 Feb 11 |
| 1 | +*eval.txt* For Vim version 7.4. Last change: 2014 Mar 22 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -2815,7 +2815,7 @@ expand({expr} [, {nosuf} [, {list}]]) *expand()* |
2815 | 2815 | <afile> autocmd file name |
2816 | 2816 | <abuf> autocmd buffer number (as a String!) |
2817 | 2817 | <amatch> autocmd matched name |
2818 | | - <sfile> sourced script file name |
| 2818 | + <sfile> sourced script file or function name |
2819 | 2819 | <slnum> sourced script file line number |
2820 | 2820 | <cword> word under the cursor |
2821 | 2821 | <cWORD> WORD under the cursor |
@@ -6624,7 +6624,8 @@ See |:verbose-cmd| for more information. |
6624 | 6624 | :fu[nction][!] {name}([arguments]) [range] [abort] [dict] |
6625 | 6625 | Define a new function by the name {name}. The name |
6626 | 6626 | must be made of alphanumeric characters and '_', and |
6627 | | - must start with a capital or "s:" (see above). |
| 6627 | + must start with a capital or "s:" (see above). When |
| 6628 | + using a capital "g:" be prepended. |
6628 | 6629 |
|
6629 | 6630 | {name} can also be a |Dictionary| entry that is a |
6630 | 6631 | |Funcref|: > |
@@ -7463,10 +7464,11 @@ This does NOT work: > |
7463 | 7464 | :execute "!ls " . shellescape(filename, 1) |
7464 | 7465 | < |
7465 | 7466 | Note: The executed string may be any command-line, but |
7466 | | - you cannot start or end a "while", "for" or "if" |
7467 | | - command. Thus this is illegal: > |
| 7467 | + you cannot start or end a "while" or "for" command. |
| 7468 | + Thus this is illegal: > |
7468 | 7469 | :execute 'while i > 5' |
7469 | 7470 | :execute 'echo "test" | break' |
| 7471 | + :endwhile |
7470 | 7472 | < |
7471 | 7473 | It is allowed to have a "while" or "if" command |
7472 | 7474 | completely in the executed string: > |
|
0 commit comments