diff options
author | Shougo Matsushita <Shougo.Matsu@gmail.com> | 2016-02-20 12:59:03 +0900 |
---|---|---|
committer | Björn Linse <bjorn.linse@gmail.com> | 2016-02-29 13:21:59 +0100 |
commit | f2ae5a9cc0b93a4373e15a763c56cd391612c0c4 (patch) | |
tree | 00b2ecef8a9887b31c779b52abbbdbb5fc2995ca /runtime | |
parent | 9c4b34be284faa573a66f5fd68f111634f482f7c (diff) | |
download | rneovim-f2ae5a9cc0b93a4373e15a763c56cd391612c0c4.tar.gz rneovim-f2ae5a9cc0b93a4373e15a763c56cd391612c0c4.tar.bz2 rneovim-f2ae5a9cc0b93a4373e15a763c56cd391612c0c4.zip |
Add TextYankPost and TextDeletePost autocmds
Reviewed by @watiko
Ported from https://github.com/Silex/vim/commit/de53ab72c89affa8ba77536ed8920751c037d127
Diffstat (limited to 'runtime')
-rw-r--r-- | runtime/doc/autocmd.txt | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index e17281821c..5f36079a39 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -308,6 +308,9 @@ Name triggered by ~ |InsertCharPre| when a character was typed in Insert mode, before inserting it +|TextDeletePost| when some text is deleted (dw, dd, D) +|TextYankPost| when some text is yanked (yw, yd, Y) + |TextChanged| after a change was made to the text in Normal mode |TextChangedI| after a change was made to the text in Insert mode @@ -722,6 +725,24 @@ InsertCharPre When a character is typed in Insert mode, It is not allowed to change the text |textlock|. The event is not triggered when 'paste' is set. + *TextDeletePost* +TextDeletePost Just after a delete (|d|) command is issued. + Not issued if the black hole register + (|quote_|) is used. The affected text can be + accessed by several ways, through @" + (|quotequote| or |v:register|: > + :echo @" + :echo eval('@' . v:register) +< + *TextYankPost* +TextYankPost Just after a |yank| (|y|) command is issued. + Not issued if the black hole register + (|quote_|) is used. The affected text can be + accessed by several ways, through @" + (|quotequote| or |v:register|: > + :echo @" + :echo eval('@' . v:register) +< *InsertEnter* InsertEnter Just before starting Insert mode. Also for Replace mode and Virtual Replace mode. The |