1- *eval.txt* For Vim version 8.1. Last change: 2019 Jun 10
1+ *eval.txt* For Vim version 8.1. Last change: 2019 Jun 17
22
33
44 VIM REFERENCE MANUAL by Bram Moolenaar
@@ -2183,7 +2183,7 @@ v:val Value of the current item of a |List| or |Dictionary|. Only
21832183
21842184 *v:version* *version-variable*
21852185v:version Version number of Vim: Major version number times 100 plus
2186- minor version number. Version 5.0 is 500. Version 5.1 (5.01)
2186+ minor version number. Version 5.0 is 500. Version 5.1
21872187 is 501. Read-only. "version" also works, for backwards
21882188 compatibility, unless | scriptversion | is 3 or higher.
21892189 Use | has() | to check if a certain patch was included, e.g.: >
@@ -2193,10 +2193,10 @@ v:version Version number of Vim: Major version number times 100 plus
21932193 completely different.
21942194
21952195 *v:versionlong* *versionlong-variable*
2196- v:versionlong Like v:version, but also including the patchlevel. Version
2197- 8.1 with patch 1234 has value 8011234. This can be used like
2198- this: >
2199- if v:versionlong >= 8011234
2196+ v:versionlong Like v:version, but also including the patchlevel in the last
2197+ four digits. Version 8.1 with patch 123 has value 8010123.
2198+ This can be used like this: >
2199+ if v:versionlong >= 8010123
22002200< However, if there are gaps in the list of patches included
22012201 this will not work well. This can happen if a recent patch
22022202 was included into an older version, e.g. for a security fix.
@@ -8123,10 +8123,9 @@ setbufline({expr}, {lnum}, {text}) *setbufline()*
81238123
81248124 {lnum} is used like with | setline() | .
81258125 This works like | setline() | for the specified buffer.
8126- On success 0 is returned, on failure 1 is returned.
81278126
8128- If {expr} is not a valid buffer or {lnum} is not valid, an
8129- error message is given .
8127+ When {expr} is not a valid buffer or {lnum} is not valid then
8128+ 1 is returned. On success 0 is returned .
81308129
81318130setbufvar({expr} , {varname} , {val} ) *setbufvar()*
81328131 Set option or local variable {varname} in buffer {expr} to
@@ -8884,7 +8883,7 @@ sort({list} [, {func} [, {dict}]]) *sort()* *E702*
88848883<
88858884sound_clear() *sound_clear()*
88868885 Stop playing all sounds.
8887- {only available when compiled with the +sound feature}
8886+ {only available when compiled with the | +sound | feature}
88888887
88898888 *sound_playevent()*
88908889sound_playevent({name} [, {callback} ])
@@ -8893,8 +8892,11 @@ sound_playevent({name} [, {callback}])
88938892 are used. On Ubuntu they may be found in
88948893 /usr/share/sounds/freedesktop/stereo. Example: >
88958894 call sound_playevent('bell')
8895+ < On MS-Windows, {name} can be SystemAsterisk, SystemDefault,
8896+ SystemExclamation, SystemExit, SystemHand, SystemQuestion,
8897+ SystemStart, SystemWelcome, etc.
88968898
8897- < When {callback} is specified it is invoked when the sound is
8899+ When {callback} is specified it is invoked when the sound is
88988900 finished. The first argument is the sound ID, the second
88998901 argument is the status:
89008902 0 sound was played to the end
@@ -8906,7 +8908,9 @@ sound_playevent({name} [, {callback}])
89068908 endfunc
89078909 call sound_playevent('bell', 'Callback')
89088910
8909- < Returns the sound ID, which can be passed to `sound_stop ()` .
8911+ < MS-Windows: {callback} doesn't work for this function.
8912+
8913+ Returns the sound ID, which can be passed to `sound_stop ()` .
89108914 Returns zero if the sound could not be played.
89118915 {only available when compiled with the | +sound | feature}
89128916
@@ -8922,6 +8926,10 @@ sound_playfile({path} [, {callback}])
89228926sound_stop({id} ) *sound_stop()*
89238927 Stop playing sound {id} . {id} must be previously returned by
89248928 `sound_playevent ()` or `sound_playfile ()` .
8929+
8930+ On MS-Windows, this does not work for event sound started by
8931+ `sound_playevent ()` . To stop event sounds, use `sound_clear ()` .
8932+
89258933 {only available when compiled with the | +sound | feature}
89268934
89278935 *soundfold()*
@@ -11592,7 +11600,6 @@ text...
1159211600 # Number
1159311601 * Funcref
1159411602
11595-
1159611603:unl[et][!] {name} ... *:unlet* *:unl* *E108* *E795*
1159711604 Remove the internal variable {name} . Several variable
1159811605 names can be given, they are all removed. The name
@@ -11637,7 +11644,7 @@ text...
1163711644< This is useful if you want to make sure the variable
1163811645 is not modified.
1163911646 *E995*
11640- | :const | does not allow to for changing a variable. >
11647+ | :const | does not allow to for changing a variable: >
1164111648 :let x = 1
1164211649 :const x = 2 " Error!
1164311650< *E996*
0 commit comments