Mercurial > vim
diff runtime/doc/eval.txt @ 24387:5c98ea5f5d6e
Update runtime files
Commit: https://github.com/vim/vim/commit/130cbfc31235c6cb52ffe718ea0a5bb50fbbc9fd
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Apr 7 21:07:20 2021 +0200
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 07 Apr 2021 21:15:05 +0200 |
parents | 55f458d35292 |
children | e3ec2ec8841a |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.2. Last change: 2021 Mar 28 +*eval.txt* For Vim version 8.2. Last change: 2021 Apr 07 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1550,8 +1550,11 @@ 2. The prefix "a:" should not be used fo The arguments are optional. Example: > :let F = {-> 'error function'} - :echo F() + :echo F('ignored') < error function + +Note that in Vim9 script another kind of lambda can be used: |vim9-lambda|. + *closure* Lambda expressions can access outer scope variables and arguments. This is often called a closure. Example where "i" and "a:arg" are used in a lambda @@ -1586,7 +1589,7 @@ The lambda expression is also useful for Handler called Note how execute() is used to execute an Ex command. That's ugly though. - +In Vim9 script you can use a command block, see |inline-function|. Lambda expressions have internal names like '<lambda>42'. If you get an error for a lambda expression, you can find what it is with the following command: > @@ -6087,7 +6090,7 @@ getwininfo([{winid}]) *getwininfo()* tab pages is returned. Each List item is a |Dictionary| with the following entries: - botline last displayed buffer line + botline last complete displayed buffer line bufnr number of buffer in the window height window height (excluding winbar) loclist 1 if showing a location list @@ -11866,7 +11869,7 @@ gui_mac Compiled with Macintosh GUI. gui_motif Compiled with Motif GUI. gui_photon Compiled with Photon GUI. gui_running Vim is running in the GUI, or it will start soon. -gui_win32 Compiled with MS Windows Win32 GUI. +gui_win32 Compiled with MS-Windows Win32 GUI. gui_win32s idem, and Win32s system being used (Windows 3.1) haiku Haiku version of Vim. hangul_input Compiled with Hangul input support. |hangul|