Mercurial > vim
comparison runtime/doc/autocmd.txt @ 3371:8dcf3ea92b63
Updated runtime files.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Wed, 22 Feb 2012 17:30:19 +0100 |
parents | b37888de599c |
children | 38a135730423 |
comparison
equal
deleted
inserted
replaced
3370:56d11b2b77eb | 3371:8dcf3ea92b63 |
---|---|
1 *autocmd.txt* For Vim version 7.3. Last change: 2012 Feb 12 | 1 *autocmd.txt* For Vim version 7.3. Last change: 2012 Feb 22 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
31 For example, you can create an autocommand to set the 'cindent' option for | 31 For example, you can create an autocommand to set the 'cindent' option for |
32 files matching *.c. You can also use autocommands to implement advanced | 32 files matching *.c. You can also use autocommands to implement advanced |
33 features, such as editing compressed files (see |gzip-example|). The usual | 33 features, such as editing compressed files (see |gzip-example|). The usual |
34 place to put autocommands is in your .vimrc or .exrc file. | 34 place to put autocommands is in your .vimrc or .exrc file. |
35 | 35 |
36 *E203* *E204* *E143* | 36 *E203* *E204* *E143* *E855* |
37 WARNING: Using autocommands is very powerful, and may lead to unexpected side | 37 WARNING: Using autocommands is very powerful, and may lead to unexpected side |
38 effects. Be careful not to destroy your text. | 38 effects. Be careful not to destroy your text. |
39 - It's a good idea to do some testing on an expendable copy of a file first. | 39 - It's a good idea to do some testing on an expendable copy of a file first. |
40 For example: If you use autocommands to decompress a file when starting to | 40 For example: If you use autocommands to decompress a file when starting to |
41 edit it, make sure that the autocommands for compressing when writing work | 41 edit it, make sure that the autocommands for compressing when writing work |