Mercurial > vim
comparison runtime/doc/autocmd.txt @ 20800:e76b83c07bd8 v8.2.0952
patch 8.2.0952: no simple way to interrupt Vim
Commit: https://github.com/vim/vim/commit/be5ee8686a50acf07b823bd293f9c765e533d213
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 10 20:56:58 2020 +0200
patch 8.2.0952: no simple way to interrupt Vim
Problem: No simple way to interrupt Vim.
Solution: Add the SigUSR1 autocommand, triggered by SIGUSR1. (Jacob Hayes,
closes #1718)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 10 Jun 2020 21:00:04 +0200 |
parents | 51bc26d4a393 |
children | b8ca32dcfabb |
comparison
equal
deleted
inserted
replaced
20799:a3f74832de9b | 20800:e76b83c07bd8 |
---|---|
378 info | 378 info |
379 |CompleteDone| after Insert mode completion is done, after clearing | 379 |CompleteDone| after Insert mode completion is done, after clearing |
380 info | 380 info |
381 | 381 |
382 |User| to be used in combination with ":doautocmd" | 382 |User| to be used in combination with ":doautocmd" |
383 |SigUSR1| after the SIGUSR1 signal has been detected | |
383 | 384 |
384 | 385 |
385 The alphabetical list of autocommand events: *autocmd-events-abc* | 386 The alphabetical list of autocommand events: *autocmd-events-abc* |
386 | 387 |
387 *BufCreate* *BufAdd* | 388 *BufCreate* *BufAdd* |
1156 Not triggered when |quote_| is used nor when | 1157 Not triggered when |quote_| is used nor when |
1157 called recursively. | 1158 called recursively. |
1158 It is not allowed to change the buffer text, | 1159 It is not allowed to change the buffer text, |
1159 see |textlock|. | 1160 see |textlock|. |
1160 {only when compiled with the +eval feature} | 1161 {only when compiled with the +eval feature} |
1162 | |
1161 *User* | 1163 *User* |
1162 User Never executed automatically. To be used for | 1164 User Never executed automatically. To be used for |
1163 autocommands that are only executed with | 1165 autocommands that are only executed with |
1164 ":doautocmd". | 1166 ":doautocmd". |
1165 Note that when `:doautocmd User MyEvent` is | 1167 Note that when `:doautocmd User MyEvent` is |
1166 used while there are no matching autocommands, | 1168 used while there are no matching autocommands, |
1167 you will get an error. If you don't want | 1169 you will get an error. If you don't want |
1168 that, define a dummy autocommand yourself. | 1170 that, define a dummy autocommand yourself. |
1171 | |
1172 *SigUSR1* | |
1173 SigUSR1 After the SIGUSR1 signal has been detected. | |
1174 Could be used if other ways of notifying Vim | |
1175 are not feasible. E.g. to check for the | |
1176 result of a build that takes a long time, or | |
1177 when a motion sensor is triggered. | |
1178 {only on Unix} | |
1179 | |
1169 *UserGettingBored* | 1180 *UserGettingBored* |
1170 UserGettingBored When the user presses the same key 42 times. | 1181 UserGettingBored When the user presses the same key 42 times. |
1171 Just kidding! :-) | 1182 Just kidding! :-) |
1172 *VimEnter* | 1183 *VimEnter* |
1173 VimEnter After doing all the startup stuff, including | 1184 VimEnter After doing all the startup stuff, including |