Mercurial > vim
diff runtime/doc/autocmd.txt @ 7013:349e6c01f35d
Update runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Tue, 11 Aug 2015 20:34:49 +0200 |
parents | b2673982c625 |
children | eff26a8620ce |
line wrap: on
line diff
--- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 7.4. Last change: 2015 Jul 20 +*autocmd.txt* For Vim version 7.4. Last change: 2015 Aug 05 VIM REFERENCE MANUAL by Bram Moolenaar @@ -1072,7 +1072,7 @@ Instead of a pattern buffer-local autoco Examples: > :au CursorHold <buffer> echo 'hold' :au CursorHold <buffer=33> echo 'hold' - :au CursorHold <buffer=abuf> echo 'hold' + :au BufNewFile * CursorHold <buffer=abuf> echo 'hold' All the commands for autocommands also work with buffer-local autocommands, simply use the special string instead of the pattern. Examples: >