diff options
author | Bram Moolenaar <Bram@vim.org> | 2015-04-13 12:43:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2015-04-13 12:43:06 +0200 |
commit | 5a5f45917dbf542cb00617fa5ef70a14898495dd (patch) | |
tree | a3230510c832eba7fa7eb8f4994783b56f842a51 /runtime/doc/autocmd.txt | |
parent | 695baeefe17adcd95f91d089efee87bd96fc98db (diff) | |
download | vim-git-5a5f45917dbf542cb00617fa5ef70a14898495dd.tar.gz |
Updated runtime files.
Diffstat (limited to 'runtime/doc/autocmd.txt')
-rw-r--r-- | runtime/doc/autocmd.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index fed1a4814..ff05fe5e6 100644 --- 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 the window to be ============================================================================== 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 |