Mercurial > vim
comparison runtime/doc/eval.txt @ 19721:bceeded72898
Update runtime files
Commit: https://github.com/vim/vim/commit/ff78155aa1755aced96a3b343e81939c94aac721
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Mar 19 20:37:11 2020 +0100
Update runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 19 Mar 2020 20:45:06 +0100 |
parents | da791e5c0139 |
children | 810eee1b42e3 |
comparison
equal
deleted
inserted
replaced
19720:69b650ef768a | 19721:bceeded72898 |
---|---|
1 *eval.txt* For Vim version 8.2. Last change: 2020 Mar 14 | 1 *eval.txt* For Vim version 8.2. Last change: 2020 Mar 16 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
5837 and miss a following `endif`. Therfore put the `endif` on a | 5837 and miss a following `endif`. Therfore put the `endif` on a |
5838 separate line: > | 5838 separate line: > |
5839 if has('feature') | 5839 if has('feature') |
5840 let x = this->breaks->without->the->feature | 5840 let x = this->breaks->without->the->feature |
5841 endif | 5841 endif |
5842 < If the `endif` would be in the second line it would not be | 5842 < If the `endif` would be moved to the second line as "| endif" it |
5843 found. | 5843 would not be found. |
5844 | 5844 |
5845 | 5845 |
5846 has_key({dict}, {key}) *has_key()* | 5846 has_key({dict}, {key}) *has_key()* |
5847 The result is a Number, which is 1 if |Dictionary| {dict} has | 5847 The result is a Number, which is 1 if |Dictionary| {dict} has |
5848 an entry with key {key}. Zero otherwise. | 5848 an entry with key {key}. Zero otherwise. |
7188 item has submenus. | 7188 item has submenus. |
7189 | 7189 |
7190 Returns an empty dictionary if the menu item is not found. | 7190 Returns an empty dictionary if the menu item is not found. |
7191 | 7191 |
7192 Examples: > | 7192 Examples: > |
7193 :echo maparg('Edit.Cut') | 7193 :echo menu_info('Edit.Cut') |
7194 :echo maparg('File.Save', 'n') | 7194 :echo menu_info('File.Save', 'n') |
7195 < | 7195 < |
7196 Can also be used as a |method|: > | 7196 Can also be used as a |method|: > |
7197 GetMenuName()->maparg('v') | 7197 GetMenuName()->menu_info('v') |
7198 | 7198 |
7199 | 7199 |
7200 < *min()* | 7200 < *min()* |
7201 min({expr}) Return the minimum value of all items in {expr}. | 7201 min({expr}) Return the minimum value of all items in {expr}. |
7202 {expr} can be a List or a Dictionary. For a Dictionary, | 7202 {expr} can be a List or a Dictionary. For a Dictionary, |