@@ -2326,6 +2326,7 @@ extend({expr1}, {expr2} [, {expr3}])
23262326exp({expr} ) Float exponential of {expr}
23272327expand({expr} [, {nosuf} [, {list} ]])
23282328 any expand special keywords in {expr}
2329+ expandcmd({expr} ) String expand {expr} like with `:edit `
23292330feedkeys({string} [, {mode} ]) Number add key sequence to typeahead buffer
23302331filereadable({file} ) Number | TRUE | if {file} is a readable file
23312332filewritable({file} ) Number | TRUE | if {file} is a writable file
@@ -2622,6 +2623,12 @@ sin({expr}) Float sine of {expr}
26222623sinh({expr} ) Float hyperbolic sine of {expr}
26232624sort({list} [, {func} [, {dict} ]])
26242625 List sort {list} , using {func} to compare
2626+ sound_playevent({name} [, {callback} ])
2627+ Number play an event sound
2628+ sound_playfile({name} [, {callback} ])
2629+ Number play a sound file
2630+ sound_stop({id} ) none stop playing sound {id}
2631+ sound_stopall() none stop playing all sounds
26252632soundfold({word} ) String sound-fold {word}
26262633spellbadword() String badly spelled word at cursor
26272634spellsuggest({word} [, {max} [, {capital} ]])
@@ -4212,6 +4219,14 @@ expand({expr} [, {nosuf} [, {list}]]) *expand()*
42124219 See | glob() | for finding existing files. See | system() | for
42134220 getting the raw output of an external command.
42144221
4222+ expandcmd({expr} ) *expandcmd()*
4223+ Expand special items in {expr} like what is done for an Ex
4224+ command such as `:edit ` . This expands special keywords, like
4225+ with | expand() | , and environment variables, anywhere in
4226+ {expr} . Returns the expanded string.
4227+ Example: >
4228+ :echo expandcmd('make %<.o')
4229+ <
42154230extend({expr1} , {expr2} [, {expr3} ]) *extend()*
42164231 {expr1} and {expr2} must be both | Lists | or both
42174232 | Dictionaries | .
@@ -8837,6 +8852,49 @@ sort({list} [, {func} [, {dict}]]) *sort()* *E702*
88378852 return a:i1 - a:i2
88388853 endfunc
88398854<
8855+ *sound_playevent()*
8856+ sound_playevent({name} [, {callback} ])
8857+ Play a sound identified by {name} . Which event names are
8858+ supported depends on the system. Often the XDG sound names
8859+ are used. On Ubuntu they may be found in
8860+ /usr/share/sounds/freedesktop/stereo. Example: >
8861+ call sound_playevent('bell')
8862+
8863+ < When {callback} is specified it is invoked when the sound is
8864+ finished. The first argument is the sound ID, the second
8865+ argument is the status:
8866+ 0 sound was played to the end
8867+ 1 sound was interruped
8868+ 2 error occured after sound started
8869+ Example: >
8870+ func Callback(id, status)
8871+ echomsg "sound " .. a:id .. " finished with " .. a:status
8872+ endfunc
8873+ call sound_playevent('bell', 'Callback')
8874+
8875+ < Returns the sound ID, which can be passed to `sound_stop ()` .
8876+ Returns zero if the sound could not be played.
8877+ {only available when compiled with the +sound feature}
8878+
8879+ *sound_playfile()*
8880+ sound_playfile({name} [, {callback} ])
8881+ Like `sound_playevent ()` but play sound file {name} . {name}
8882+ must be a full path. On Ubuntu you may find files to play
8883+ with this command: >
8884+ :!find /usr/share/sounds -type f | grep -v index.theme
8885+
8886+ < {only available when compiled with the +sound feature}
8887+
8888+
8889+ sound_stop({id} ) *sound_stop()*
8890+ Stop playing sound {id} . {id} must be previously returned by
8891+ `sound_playevent ()` or `sound_playfile ()` .
8892+ {only available when compiled with the +sound feature}
8893+
8894+ sound_stopall() *sound_stopall()*
8895+ Stop playing all sounds.
8896+ {only available when compiled with the +sound feature}
8897+
88408898 *soundfold()*
88418899soundfold({word} )
88428900 Return the sound-folded equivalent of {word} . Uses the first
@@ -10759,6 +10817,7 @@ scrollbind Compiled with 'scrollbind' support. (always true)
1075910817showcmd Compiled with 'showcmd' support.
1076010818signs Compiled with | :sign | support.
1076110819smartindent Compiled with 'smartindent' support.
10820+ sound Compiled with sound support, e.g. `sound_playevent ()`
1076210821spell Compiled with spell checking support | spell | .
1076310822startuptime Compiled with | --startuptime | support.
1076410823statusline Compiled with support for 'statusline' , 'rulerformat'
0 commit comments