Mercurial > vim
diff runtime/doc/autocmd.txt @ 16023:dc766e1b0c95
Update runtime files.
commit https://github.com/vim/vim/commit/26967617a30e55aedc98b8f14b841d88469abd0e
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 17 17:13:16 2019 +0100
Update runtime files.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 17 Mar 2019 17:15:11 +0100 |
parents | 7cfe57329284 |
children | 81e6940504e8 |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 8.1. Last change: 2019 Jan 19 +*autocmd.txt* For Vim version 8.1. Last change: 2019 Mar 13 VIM REFERENCE MANUAL by Bram Moolenaar @@ -621,6 +621,8 @@ CursorMoved After the cursor was moved Not triggered when there is typeahead or when an operator is pending. For an example see |match-parens|. + Note: This can not be skipped with + `:noautocmd`. Careful: This is triggered very often, don't do anything that the user does not expect or that is slow. @@ -1024,6 +1026,8 @@ TextChanged After a change was made to was defined). Not triggered when there is typeahead or when an operator is pending. + Note: This can not be skipped with + `:noautocmd`. Careful: This is triggered very often, don't do anything that the user does not expect or that is slow. @@ -1465,8 +1469,8 @@ If you want the buffer to be unmodified instead of ":q!". *autocmd-nested* *E218* -By default, autocommands do not nest. If you use ":e" or ":w" in an -autocommand, Vim does not execute the BufRead and BufWrite autocommands for +By default, autocommands do not nest. For example, if you use ":e" or ":w" in +an autocommand, Vim does not execute the BufRead and BufWrite autocommands for those commands. If you do want this, use the "nested" flag for those commands in which you want nesting. For example: > :autocmd FileChangedShell *.c nested e! @@ -1612,5 +1616,8 @@ following command. Example: > This will write the file without triggering the autocommands defined by the gzip plugin. +Note that some autocommands are not triggered right away, but only later. +This specifically applies to |CursorMoved| and |TextChanged|. + vim:tw=78:ts=8:noet:ft=help:norl: