diff options
author | Bram Moolenaar <Bram@vim.org> | 2005-06-13 22:28:56 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2005-06-13 22:28:56 +0000 |
commit | 9ba0eb850c0f4c94df3b7f7461610bf0b073f712 (patch) | |
tree | 11638af8ad8ecdfd337a6db15914b2e2cdff3aea /runtime/doc/eval.txt | |
parent | bac97eb8ae6b067466cab0481cac2f25b335ffe7 (diff) |
updated for version 7.0084v7.0084
Diffstat (limited to 'runtime/doc/eval.txt')
-rw-r--r-- | runtime/doc/eval.txt | 20 |
1 files changed, 17 insertions, 3 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index 8c98ff0006..a8d54a5032 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 7.0aa. Last change: 2005 Jun 07 +*eval.txt* For Vim version 7.0aa. Last change: 2005 Jun 11 VIM REFERENCE MANUAL by Bram Moolenaar @@ -235,6 +235,18 @@ the same value. > :echo alist == blist < 1 +Note about comparing lists: Two lists are considered equal if they have the +same length and all items compare equal, as with using "==". There is one +exception: When comparing a number with a string and the string contains extra +characters beside the number they are not equal. Example: > + echo 4 == "4x" +< 1 > + echo [4] == ["4x"] +< 0 + +This is to fix the odd behavior of == that can't be changed for backward +compatibility reasons. + List unpack ~ @@ -2593,7 +2605,8 @@ getwinposy() The result is a Number, which is the Y coordinate in pixels of getwinvar({nr}, {varname}) *getwinvar()* The result is the value of option or local window variable - {varname} in window {nr}. + {varname} in window {nr}. When {nr} is zero the current + window is used. This also works for a global option, buffer-local option and window-local option, but it doesn't work for a global variable or buffer-local variable. @@ -3692,7 +3705,7 @@ setreg({regname}, {value} [,{options}]) setwinvar({nr}, {varname}, {val}) *setwinvar()* Set option or local variable {varname} in window {nr} to - {val}. + {val}. When {nr} is zero the current window is used. This also works for a global or local buffer option, but it doesn't work for a global or local buffer variable. For a local buffer option the global value is unchanged. @@ -3804,6 +3817,7 @@ string({expr}) Return {expr} converted to a String. If {expr} is a Number, Number 123 Funcref function('name') List [item, item] + Dictionary {key: value, key: value} Note that in String values the ' character is doubled. *strlen()* |