diff options
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 16 |
1 files changed, 12 insertions, 4 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 7cafc16ce9..93bc7f868d 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -3595,7 +3595,10 @@ expand({expr} [, {nosuf} [, {list}]]) *expand()* <abuf> autocmd buffer number (as a String!) <amatch> autocmd matched name <sfile> sourced script file or function name - <slnum> sourced script file line number + <slnum> sourced script line number or function + line number + <sflnum> script file line number, also when in + a function <cword> word under the cursor <cWORD> WORD under the cursor <client> the {clientid} of the last received @@ -5705,6 +5708,7 @@ maparg({name} [, {mode} [, {abbr} [, {dict}]]]) *maparg()* (|mapmode-ic|) "sid" The script local ID, used for <sid> mappings (|<SID>|). + "lnum" The line number in "sid", zero if unknown. "nowait" Do not wait for other, longer mappings. (|:map-<nowait>|). @@ -9255,9 +9259,13 @@ See |:verbose-cmd| for more information. deleted if there are no more references to it. *E127* *E122* When a function by this name already exists and [!] is - not used an error message is given. When [!] is used, - an existing function is silently replaced. Unless it - is currently being executed, that is an error. + not used an error message is given. There is one + exception: When sourcing a script again, a function + that was previously defined in that script will be + silently replaced. + When [!] is used, an existing function is silently + replaced. Unless it is currently being executed, that + is an error. NOTE: Use ! wisely. If used without care it can cause an existing function to be replaced unexpectedly, which is hard to debug. |