Mercurial > vim
comparison runtime/doc/autocmd.txt @ 7051:eff26a8620ce
commit https://github.com/vim/vim/commit/88774fdd23f08355297bb8cda78856859051d3c7
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Aug 25 19:52:04 2015 +0200
Updated runtime files and Italian messages.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 25 Aug 2015 20:00:06 +0200 |
parents | 349e6c01f35d |
children | aea5ebf352c4 |
comparison
equal
deleted
inserted
replaced
7050:2ddd6c9ec05f | 7051:eff26a8620ce |
---|---|
1 *autocmd.txt* For Vim version 7.4. Last change: 2015 Aug 05 | 1 *autocmd.txt* For Vim version 7.4. Last change: 2015 Aug 18 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1070 |<abuf>| | 1070 |<abuf>| |
1071 | 1071 |
1072 Examples: > | 1072 Examples: > |
1073 :au CursorHold <buffer> echo 'hold' | 1073 :au CursorHold <buffer> echo 'hold' |
1074 :au CursorHold <buffer=33> echo 'hold' | 1074 :au CursorHold <buffer=33> echo 'hold' |
1075 :au BufNewFile * CursorHold <buffer=abuf> echo 'hold' | 1075 :au BufNewFile * au CursorHold <buffer=abuf> echo 'hold' |
1076 | 1076 |
1077 All the commands for autocommands also work with buffer-local autocommands, | 1077 All the commands for autocommands also work with buffer-local autocommands, |
1078 simply use the special string instead of the pattern. Examples: > | 1078 simply use the special string instead of the pattern. Examples: > |
1079 :au! * <buffer> " remove buffer-local autocommands for | 1079 :au! * <buffer> " remove buffer-local autocommands for |
1080 " current buffer | 1080 " current buffer |