Mercurial > vim
comparison runtime/doc/autocmd.txt @ 13735:a62eeee5f116
Update runtime files.
commit https://github.com/vim/vim/commit/7dda86f2ff35bb80afce4da24782fd58216bbe50
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 20 22:36:41 2018 +0200
Update runtime files.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 20 Apr 2018 22:45:07 +0200 |
parents | 9eebe457eb3c |
children | 28ac7914b2b6 |
comparison
equal
deleted
inserted
replaced
13734:600a38fe5c00 | 13735:a62eeee5f116 |
---|---|
1 *autocmd.txt* For Vim version 8.0. Last change: 2018 Mar 15 | 1 *autocmd.txt* For Vim version 8.0. Last change: 2018 Apr 19 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
1028 {only when compiled with the +eval feature} | 1028 {only when compiled with the +eval feature} |
1029 *User* | 1029 *User* |
1030 User Never executed automatically. To be used for | 1030 User Never executed automatically. To be used for |
1031 autocommands that are only executed with | 1031 autocommands that are only executed with |
1032 ":doautocmd". | 1032 ":doautocmd". |
1033 Note that when `:doautocmd User MyEvent` is | |
1034 used while there are no matching autocommands, | |
1035 you will get an error. If you don't want | |
1036 that, define a dummy autocommand yourself. | |
1033 *UserGettingBored* | 1037 *UserGettingBored* |
1034 UserGettingBored When the user presses the same key 42 times. | 1038 UserGettingBored When the user presses the same key 42 times. |
1035 Just kidding! :-) | 1039 Just kidding! :-) |
1036 *VimEnter* | 1040 *VimEnter* |
1037 VimEnter After doing all the startup stuff, including | 1041 VimEnter After doing all the startup stuff, including |
1072 the first window, when Vim has just started. | 1076 the first window, when Vim has just started. |
1073 Useful for setting the window height. | 1077 Useful for setting the window height. |
1074 If the window is for another buffer, Vim | 1078 If the window is for another buffer, Vim |
1075 executes the BufEnter autocommands after the | 1079 executes the BufEnter autocommands after the |
1076 WinEnter autocommands. | 1080 WinEnter autocommands. |
1077 Note: When using ":split fname" the WinEnter | 1081 Note: For split and tabpage commands the |
1078 event is triggered after the split but before | 1082 WinEnter event is triggered after the split |
1079 the file "fname" is loaded. | 1083 or tab command but before the file is loaded. |
1084 | |
1080 *WinLeave* | 1085 *WinLeave* |
1081 WinLeave Before leaving a window. If the window to be | 1086 WinLeave Before leaving a window. If the window to be |
1082 entered next is for a different buffer, Vim | 1087 entered next is for a different buffer, Vim |
1083 executes the BufLeave autocommands before the | 1088 executes the BufLeave autocommands before the |
1084 WinLeave autocommands (but not for ":new"). | 1089 WinLeave autocommands (but not for ":new"). |