Mercurial > vim
comparison runtime/doc/autocmd.txt @ 9737:35ce559b8553
commit https://github.com/vim/vim/commit/bc8801c9317eb721a2ee91322669f2dd5d136380
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 2 21:04:33 2016 +0200
Updated runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 02 Aug 2016 21:15:06 +0200 |
parents | 01c9630e80e0 |
children | b11ceef7116e |
comparison
equal
deleted
inserted
replaced
9736:d963b7420aa2 | 9737:35ce559b8553 |
---|---|
1 *autocmd.txt* For Vim version 7.4. Last change: 2016 Jul 19 | 1 *autocmd.txt* For Vim version 7.4. Last change: 2016 Jul 29 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1161 or "END" selects the default group. | 1161 or "END" selects the default group. |
1162 To avoid confusion, the name should be | 1162 To avoid confusion, the name should be |
1163 different from existing {event} names, as this | 1163 different from existing {event} names, as this |
1164 most likely will not do what you intended. | 1164 most likely will not do what you intended. |
1165 | 1165 |
1166 *:augroup-delete* *E367* | 1166 *:augroup-delete* *E367* *W19* |
1167 :aug[roup]! {name} Delete the autocmd group {name}. Don't use | 1167 :aug[roup]! {name} Delete the autocmd group {name}. Don't use |
1168 this if there is still an autocommand using | 1168 this if there is still an autocommand using |
1169 this group! This is not checked. | 1169 this group! You will get a warning if doing |
1170 it anyway. | |
1170 | 1171 |
1171 To enter autocommands for a specific group, use this method: | 1172 To enter autocommands for a specific group, use this method: |
1172 1. Select the group with ":augroup {name}". | 1173 1. Select the group with ":augroup {name}". |
1173 2. Delete any old autocommands with ":au!". | 1174 2. Delete any old autocommands with ":au!". |
1174 3. Define the autocommands. | 1175 3. Define the autocommands. |