diff options
author | zeertzjq <zeertzjq@outlook.com> | 2022-04-12 05:48:23 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-12 05:48:23 +0800 |
commit | dbd5242d8e10db4ed077547755f0d84aa8261cb5 (patch) | |
tree | 507feed5fe2cbfd0e807719424aec1c472de2879 /runtime/doc | |
parent | 10b40440ddbdc979a47335790988966b4e9fb6f1 (diff) | |
parent | 6be4fd888c4972a411217e486037997720ece6be (diff) | |
download | rneovim-dbd5242d8e10db4ed077547755f0d84aa8261cb5.tar.gz rneovim-dbd5242d8e10db4ed077547755f0d84aa8261cb5.tar.bz2 rneovim-dbd5242d8e10db4ed077547755f0d84aa8261cb5.zip |
Merge pull request #18075 from zeertzjq/vim-8.2.4713
vim-patch:8.2.4713: plugins cannot track text scrolling
Diffstat (limited to 'runtime/doc')
-rw-r--r-- | runtime/doc/autocmd.txt | 17 |
1 files changed, 13 insertions, 4 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index e3cd28e353..07158982f2 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1084,15 +1084,24 @@ WinLeave Before leaving a window. If the window to be WinNew When a new window was created. Not done for the first window, when Vim has just started. Before WinEnter. - *WinScrolled* -WinScrolled After scrolling the viewport of the current - window. + *WinScrolled* +WinScrolled After scrolling the content of a window or + resizing a window. + The pattern is matched against the + |window-ID|. Both <amatch> and <afile> are + set to the |window-ID|. + Non-recursive (the event cannot trigger + itself). However, if the command causes the + window to scroll or change size another + WinScrolled event will be triggered later. + Does not trigger when the command is added, + only after the first scroll or resize. ============================================================================== 6. Patterns *autocmd-pattern* *{aupat}* -The {aupat} argument of `:autocmd` can be a comma separated list. This works +The {aupat} argument of `:autocmd` can be a comma-separated list. This works as if the command was given with each pattern separately. Thus this command: > :autocmd BufRead *.txt,*.info set et Is equivalent to: > |