Mercurial > vim
comparison runtime/doc/autocmd.txt @ 10617:9a75c8a1b8b1
Update runtime files.
commit https://github.com/vim/vim/commit/369b6f57c426b4bf39b4a0cac8d21ed1b5f7de4d
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Jan 17 12:22:32 2017 +0100
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 17 Jan 2017 12:30:05 +0100 |
parents | 876fbdd84e52 |
children | 4aae8146c21f |
comparison
equal
deleted
inserted
replaced
10616:db8a2a027ef7 | 10617:9a75c8a1b8b1 |
---|---|
1 *autocmd.txt* For Vim version 8.0. Last change: 2016 Sep 27 | 1 *autocmd.txt* For Vim version 8.0. Last change: 2017 Jan 14 |
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* *E855* | 36 *E203* *E204* *E143* *E855* *E937* |
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 |