Mercurial > vim
comparison runtime/doc/autocmd.txt @ 13037:6e81a68d63a1 v8.0.1394
patch 8.0.1394: cannot intercept a yank command
commit https://github.com/vim/vim/commit/7e1652c63c96585b9e2235c195a3c322b1f11595
Author: Bram Moolenaar <Bram@vim.org>
Date: Sat Dec 16 18:27:02 2017 +0100
patch 8.0.1394: cannot intercept a yank command
Problem: Cannot intercept a yank command.
Solution: Add the TextYankPost autocommand event. (Philippe Vaucher et al.,
closes #2333)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sat, 16 Dec 2017 18:30:05 +0100 |
parents | 65d7fd8381a3 |
children | a6d3e2081544 |
comparison
equal
deleted
inserted
replaced
13036:754780887de1 | 13037:6e81a68d63a1 |
---|---|
328 |InsertCharPre| when a character was typed in Insert mode, before | 328 |InsertCharPre| when a character was typed in Insert mode, before |
329 inserting it | 329 inserting it |
330 | 330 |
331 |TextChanged| after a change was made to the text in Normal mode | 331 |TextChanged| after a change was made to the text in Normal mode |
332 |TextChangedI| after a change was made to the text in Insert mode | 332 |TextChangedI| after a change was made to the text in Insert mode |
333 |TextYankPost| after text is yanked or deleted | |
333 | 334 |
334 |ColorScheme| after loading a color scheme | 335 |ColorScheme| after loading a color scheme |
335 | 336 |
336 |RemoteReply| a reply from a server Vim was received | 337 |RemoteReply| a reply from a server Vim was received |
337 | 338 |
954 *TextChangedI* | 955 *TextChangedI* |
955 TextChangedI After a change was made to the text in the | 956 TextChangedI After a change was made to the text in the |
956 current buffer in Insert mode. | 957 current buffer in Insert mode. |
957 Not triggered when the popup menu is visible. | 958 Not triggered when the popup menu is visible. |
958 Otherwise the same as TextChanged. | 959 Otherwise the same as TextChanged. |
960 |TextYankPost| | |
961 TextYankPost After text has been yanked or deleted in the | |
962 current buffer. The following values of | |
963 |v:event| can be used to determine the operation | |
964 that triggered this autocmd: | |
965 operator The operation performed. | |
966 regcontents Text that was stored in the | |
967 register, as a list of lines, | |
968 like with: > | |
969 getreg(r, 1, 1) | |
970 < regname Name of the |register| or | |
971 empty string for the unnamed | |
972 register. | |
973 regtype Type of the register, see | |
974 |getregtype()|. | |
975 Not triggered when |quote_| is used nor when | |
976 called recursively. | |
977 It is not allowed to change the buffer text, | |
978 see |textlock|. | |
979 | |
959 *User* | 980 *User* |
960 User Never executed automatically. To be used for | 981 User Never executed automatically. To be used for |
961 autocommands that are only executed with | 982 autocommands that are only executed with |
962 ":doautocmd". | 983 ":doautocmd". |
963 *UserGettingBored* | 984 *UserGettingBored* |