diff options
| author | ZyX <kp-pav@yandex.ru> | 2016-02-06 02:46:23 +0300 |
|---|---|---|
| committer | ZyX <kp-pav@yandex.ru> | 2016-04-18 02:45:49 +0300 |
| commit | 6167ce6df2753d5474ad49aea19f5957128ab015 (patch) | |
| tree | 525c160abf96abf5eae58a6bcfab46ae4d6cd728 /runtime | |
| parent | a3b87fc19b652065d96cec8f571d3245f1fc2446 (diff) | |
| download | rneovim-6167ce6df2753d5474ad49aea19f5957128ab015.tar.gz rneovim-6167ce6df2753d5474ad49aea19f5957128ab015.tar.bz2 rneovim-6167ce6df2753d5474ad49aea19f5957128ab015.zip | |
eval: Remove v:none
To get v:none back just rever this commit. This will not make json*() functions
compatible with Vim though.
Diffstat (limited to 'runtime')
| -rw-r--r-- | runtime/doc/eval.txt | 9 | ||||
| -rw-r--r-- | runtime/doc/vim_diff.txt | 4 |
2 files changed, 5 insertions, 8 deletions
diff --git a/runtime/doc/eval.txt b/runtime/doc/eval.txt index ee8ede2b91..f085dd2972 100644 --- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1571,13 +1571,6 @@ v:null Special value used to put "null" in JSON and NIL in msgpack. operator) and to zero when used as a Number (e.g. in |expr5| or |expr7| when used with numeric operators). - *v:none* *none-variable* -v:none Special value used to put an empty item in JSON. See - |jsonencode()|. This value is converted to "none" when used - as a String (e.g. in |expr5| with string concatenation - operator) and to zero when used as a Number (e.g. in |expr5| - or |expr7| when used with numeric operators). - *v:oldfiles* *oldfiles-variable* v:oldfiles List of file names that is loaded from the |shada| file on startup. These are the files that Vim remembers marks for. @@ -4876,7 +4869,7 @@ msgpackdump({list}) {Nvim} *msgpackdump()* messagepack). Limitations: *E951* *E952* *E953* - 1. |Funcref|s and |v:none| cannot be dumped. + 1. |Funcref|s cannot be dumped. 2. Containers that reference themselves cannot be dumped. 3. Dictionary keys are always dumped as STR strings. 4. Other strings are always dumped as BIN strings. diff --git a/runtime/doc/vim_diff.txt b/runtime/doc/vim_diff.txt index ddb1fd3b8f..2d03b4ff45 100644 --- a/runtime/doc/vim_diff.txt +++ b/runtime/doc/vim_diff.txt @@ -106,6 +106,10 @@ are always available and may be used simultaneously in separate plugins. The |jsonencode()| behaviour slightly changed: now |msgpack-special-dict| values are accepted. +*v:none* variable is absent. In Vim it represents “no value” in non-JSON +strings like "{"a": }" parsed as "{'a': v:none}". See |jsondecode()| and +|jsonencode()| incompatibilities above. + Viminfo text files were replaced with binary (messagepack) ShaDa files. Additional differences: |