Mercurial > vim
comparison runtime/doc/autocmd.txt @ 18130:1e5672da6a69
Updte runtime files
Commit: https://github.com/vim/vim/commit/589edb340454e7f1b19358f129287a636d53d0e1
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Sep 20 14:38:13 2019 +0200
Updte runtime files
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Fri, 20 Sep 2019 14:45:05 +0200 |
parents | 0d9ec3a2821f |
children | 507348b211b4 |
comparison
equal
deleted
inserted
replaced
18129:52078b0635f7 | 18130:1e5672da6a69 |
---|---|
1 *autocmd.txt* For Vim version 8.1. Last change: 2019 Jun 26 | 1 *autocmd.txt* For Vim version 8.1. Last change: 2019 Sep 16 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
579 | 579 |
580 *ColorSchemePre* | 580 *ColorSchemePre* |
581 ColorSchemePre Before loading a color scheme. |:colorscheme| | 581 ColorSchemePre Before loading a color scheme. |:colorscheme| |
582 Useful to setup removing things added by a | 582 Useful to setup removing things added by a |
583 color scheme, before another one is loaded. | 583 color scheme, before another one is loaded. |
584 CompleteChanged *CompleteChanged* | 584 CompleteChanged *CompleteChanged* |
585 After each time the Insert mode completion | 585 After each time the Insert mode completion |
586 menu changed. Not fired on popup menu hide, | 586 menu changed. Not fired on popup menu hide, |
587 use |CompleteDone| for that. Never triggered | 587 use |CompleteDone| for that. Never triggered |
588 recursively. | 588 recursively. |
589 | 589 |
1115 *TextYankPost* | 1115 *TextYankPost* |
1116 TextYankPost After text has been yanked or deleted in the | 1116 TextYankPost After text has been yanked or deleted in the |
1117 current buffer. The following values of | 1117 current buffer. The following values of |
1118 |v:event| can be used to determine the operation | 1118 |v:event| can be used to determine the operation |
1119 that triggered this autocmd: | 1119 that triggered this autocmd: |
1120 operator The operation performed. | 1120 operator The operation performed. |
1121 regcontents Text that was stored in the | 1121 regcontents Text that was stored in the |
1122 register, as a list of lines, | 1122 register, as a list of lines, |
1123 like with: > | 1123 like with: > |
1124 getreg(r, 1, 1) | 1124 getreg(r, 1, 1) |
1125 < regname Name of the |register| or | 1125 < regname Name of the |register| or |
1126 empty string for the unnamed | 1126 empty string for the unnamed |
1152 |v:vim_did_enter| variable is set, so that you | 1152 |v:vim_did_enter| variable is set, so that you |
1153 can do: > | 1153 can do: > |
1154 if v:vim_did_enter | 1154 if v:vim_did_enter |
1155 call s:init() | 1155 call s:init() |
1156 else | 1156 else |
1157 au VimEnter * call s:init() | 1157 au VimEnter * call s:init() |
1158 endif | 1158 endif |
1159 < *VimLeave* | 1159 < *VimLeave* |
1160 VimLeave Before exiting Vim, just after writing the | 1160 VimLeave Before exiting Vim, just after writing the |
1161 .viminfo file. Executed only once, like | 1161 .viminfo file. Executed only once, like |
1162 VimLeavePre. | 1162 VimLeavePre. |