Mercurial > vim
diff runtime/doc/autocmd.txt @ 6741:fbc1131f0ba5
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Mon, 13 Apr 2015 12:43:06 +0200 |
parents | bd18da914be9 |
children | 676906c33768 |
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: 2014 Sep 23 +*autocmd.txt* For Vim version 7.4. Last change: 2015 Mar 21 VIM REFERENCE MANUAL by Bram Moolenaar @@ -933,6 +933,13 @@ WinLeave Before leaving a window. If ============================================================================== 6. Patterns *autocmd-patterns* *{pat}* +The {pat} argument 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: > + :autocmd BufRead *.txt set et + :autocmd BufRead *.info set et + The file pattern {pat} is tested for a match against the file name in one of two ways: 1. When there is no '/' in the pattern, Vim checks for a match against only