Mercurial > vim
comparison runtime/doc/autocmd.txt @ 766:f0d0d3d3a1e2
updated for version 7.0225
author | vimboss |
---|---|
date | Wed, 15 Mar 2006 22:59:18 +0000 |
parents | a35dce0cabc5 |
children | 6beb2c667935 |
comparison
equal
deleted
inserted
replaced
765:335444c09581 | 766:f0d0d3d3a1e2 |
---|---|
1 *autocmd.txt* For Vim version 7.0aa. Last change: 2006 Mar 10 | 1 *autocmd.txt* For Vim version 7.0aa. Last change: 2006 Mar 15 |
2 | 2 |
3 | 3 |
4 VIM REFERENCE MANUAL by Bram Moolenaar | 4 VIM REFERENCE MANUAL by Bram Moolenaar |
5 | 5 |
6 | 6 |
268 |VimLeavePre| before exiting Vim, before writing the viminfo file | 268 |VimLeavePre| before exiting Vim, before writing the viminfo file |
269 |VimLeave| before exiting Vim, after writing the viminfo file | 269 |VimLeave| before exiting Vim, after writing the viminfo file |
270 | 270 |
271 Various | 271 Various |
272 |FileChangedShell| Vim notices that a file changed since editing started | 272 |FileChangedShell| Vim notices that a file changed since editing started |
273 |FileChangedShellPost| After handling a file changed since editing started | |
273 |FileChangedRO| before making the first change to a read-only file | 274 |FileChangedRO| before making the first change to a read-only file |
274 | 275 |
275 |ShellCmdPost| after executing a shell command | 276 |ShellCmdPost| after executing a shell command |
276 |ShellFilterPost| after filtering with a shell command | 277 |ShellFilterPost| after filtering with a shell command |
277 | 278 |
278 |FuncUndefined| a user function is used but it isn't defined | 279 |FuncUndefined| a user function is used but it isn't defined |
279 |SpellFileMissing| a spell file is used but it can't be found | 280 |SpellFileMissing| a spell file is used but it can't be found |
280 |SourcePre| before sourcing a Vim script | 281 |SourcePre| before sourcing a Vim script |
281 | 282 |
283 |VimResized| after the Vim window size changed | |
282 |FocusGained| Vim got input focus | 284 |FocusGained| Vim got input focus |
283 |FocusLost| Vim lost input focus | 285 |FocusLost| Vim lost input focus |
284 |CursorHold| the user doesn't press a key for a while | 286 |CursorHold| the user doesn't press a key for a while |
285 |CursorHoldI| the user doesn't press a key for a while in Insert mode | 287 |CursorHoldI| the user doesn't press a key for a while in Insert mode |
286 |CursorMoved| the cursor was moved in Normal mode | 288 |CursorMoved| the cursor was moved in Normal mode |
535 NOTE: This event never nests, to avoid an | 537 NOTE: This event never nests, to avoid an |
536 endless loop. This means that while executing | 538 endless loop. This means that while executing |
537 commands for the FileChangedShell event no | 539 commands for the FileChangedShell event no |
538 other FileChangedShell event will be | 540 other FileChangedShell event will be |
539 triggered. | 541 triggered. |
542 *FileChangedShellPost* | |
543 FileChangedShellPost After handling a file that was changed outside | |
544 of Vim. Can be used to update the statusline. | |
540 *FileEncoding* | 545 *FileEncoding* |
541 FileEncoding Obsolete. It still works and is equivalent | 546 FileEncoding Obsolete. It still works and is equivalent |
542 to |EncodingChanged|. | 547 to |EncodingChanged|. |
543 *FileReadCmd* | 548 *FileReadCmd* |
544 FileReadCmd Before reading a file with a ":read" command. | 549 FileReadCmd Before reading a file with a ":read" command. |
762 if there is a match with the name of what | 767 if there is a match with the name of what |
763 happens to be the current buffer when exiting. | 768 happens to be the current buffer when exiting. |
764 Mostly useful with a "*" pattern. > | 769 Mostly useful with a "*" pattern. > |
765 :autocmd VimLeavePre * call CleanupStuff() | 770 :autocmd VimLeavePre * call CleanupStuff() |
766 < To detect an abnormal exit use |v:dying|. | 771 < To detect an abnormal exit use |v:dying|. |
772 *VimResized* | |
773 VimResized After the Vim window was resized, thus 'lines' | |
774 and/or 'columns' changed. Not when starting | |
775 up though. | |
767 *WinEnter* | 776 *WinEnter* |
768 WinEnter After entering another window. Not done for | 777 WinEnter After entering another window. Not done for |
769 the first window, when Vim has just started. | 778 the first window, when Vim has just started. |
770 Useful for setting the window height. | 779 Useful for setting the window height. |
771 If the window is for another buffer, Vim | 780 If the window is for another buffer, Vim |