Mercurial > vim
diff runtime/doc/eval.txt @ 17026:905e1b154058 v8.1.1513
patch 8.1.1513: all popup functionality is in functions, except :popupclear
commit https://github.com/vim/vim/commit/3ff5f0f05d437a6b3eaf3caa5dc2762b49314617
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Jun 10 13:11:22 2019 +0200
patch 8.1.1513: all popup functionality is in functions, except :popupclear
Problem: All popup functionality is in functions, except :popupclear.
Solution: Add popup_clear() for consistency. Also rename sound_stopall() to
sound_clear().
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 10 Jun 2019 13:15:07 +0200 |
parents | 1841c03a9b5e |
children | 235cbf491430 |
line wrap: on
line diff
--- a/runtime/doc/eval.txt +++ b/runtime/doc/eval.txt @@ -1,4 +1,4 @@ -*eval.txt* For Vim version 8.1. Last change: 2019 Jun 06 +*eval.txt* For Vim version 8.1. Last change: 2019 Jun 10 VIM REFERENCE MANUAL by Bram Moolenaar @@ -2623,12 +2623,12 @@ sin({expr}) Float sine of {expr} sinh({expr}) Float hyperbolic sine of {expr} sort({list} [, {func} [, {dict}]]) List sort {list}, using {func} to compare +sound_clear() none stop playing all sounds sound_playevent({name} [, {callback}]) Number play an event sound -sound_playfile({name} [, {callback}]) - Number play a sound file +sound_playfile({path} [, {callback}]) + Number play sound file {path} sound_stop({id}) none stop playing sound {id} -sound_stopall() none stop playing all sounds soundfold({word}) String sound-fold {word} spellbadword() String badly spelled word at cursor spellsuggest({word} [, {max} [, {capital}]]) @@ -7360,7 +7360,7 @@ prop_remove({props} [, {lnum} [, {lnum-e not just the first one A property matches when either "id" or "type" matches. If buffer "bufnr" does not exist you get an error message. - If buffer 'bufnr" is not loaded then nothing happens. + If buffer "bufnr" is not loaded then nothing happens. Returns the number of properties that were removed. @@ -8852,6 +8852,10 @@ sort({list} [, {func} [, {dict}]]) *so return a:i1 - a:i2 endfunc < +sound_clear() *sound_clear()* + Stop playing all sounds. + {only available when compiled with the +sound feature} + *sound_playevent()* sound_playevent({name} [, {callback}]) Play a sound identified by {name}. Which event names are @@ -8877,12 +8881,11 @@ sound_playevent({name} [, {callback}]) {only available when compiled with the +sound feature} *sound_playfile()* -sound_playfile({name} [, {callback}]) - Like `sound_playevent()` but play sound file {name}. {name} +sound_playfile({path} [, {callback}]) + Like `sound_playevent()` but play sound file {path}. {path} must be a full path. On Ubuntu you may find files to play with this command: > :!find /usr/share/sounds -type f | grep -v index.theme - < {only available when compiled with the +sound feature} @@ -8891,10 +8894,6 @@ sound_stop({id}) *sound_stop()* `sound_playevent()` or `sound_playfile()`. {only available when compiled with the +sound feature} -sound_stopall() *sound_stopall()* - Stop playing all sounds. - {only available when compiled with the +sound feature} - *soundfold()* soundfold({word}) Return the sound-folded equivalent of {word}. Uses the first @@ -13083,19 +13082,22 @@ Sometimes old syntax of functionality ge When support is taken away this will break older Vim scripts. To make this explicit the |:scriptversion| command can be used. When a Vim script is not compatible with older versions of Vim this will give an explicit error, -instead of failing in mysterious ways. > - +instead of failing in mysterious ways. + + *scriptversion-1* > :scriptversion 1 < This is the original Vim script, same as not using a |:scriptversion| command. Can be used to go back to old syntax for a range of lines. Test for support with: > has('vimscript-1') +< *scriptversion-2* > :scriptversion 2 < String concatenation with "." is not supported, use ".." instead. This avoids the ambiguity using "." for Dict member access and floating point numbers. Now ".5" means the number 0.5. -> + + *scriptversion-3* > :scriptversion 3 < All |vim-variable|s must be prefixed by "v:". E.g. "version" doesn't work as |v:version| anymore, it can be used as a normal variable.