|
1 | | -*autocmd.txt* For Vim version 9.1. Last change: 2025 Mar 12 |
| 1 | +*autocmd.txt* For Vim version 9.1. Last change: 2025 Apr 04 |
2 | 2 |
|
3 | 3 |
|
4 | 4 | VIM REFERENCE MANUAL by Bram Moolenaar |
@@ -593,7 +593,8 @@ BufWriteCmd Before writing the whole buffer to a file. |
593 | 593 | The buffer contents should not be changed. |
594 | 594 | When the command resets 'modified' the undo |
595 | 595 | information is adjusted to mark older undo |
596 | | - states as 'modified', like |:write| does. |
| 596 | + states as 'modified', like |:write| does. Use |
| 597 | + the |'[| and |']| marks for the range of lines. |
597 | 598 | |Cmd-event| |
598 | 599 | *BufWritePost* |
599 | 600 | BufWritePost After writing the whole buffer to a file |
@@ -886,14 +887,14 @@ FileType When the 'filetype' option has been set. The |
886 | 887 | FileWriteCmd Before writing to a file, when not writing the |
887 | 888 | whole buffer. Should do the writing to the |
888 | 889 | file. Should not change the buffer. Use the |
889 | | - '[ and '] marks for the range of lines. |
| 890 | + |'[| and |']| marks for the range of lines. |
890 | 891 | |Cmd-event| |
891 | 892 | *FileWritePost* |
892 | 893 | FileWritePost After writing to a file, when not writing the |
893 | 894 | whole buffer. |
894 | 895 | *FileWritePre* |
895 | 896 | FileWritePre Before writing to a file, when not writing the |
896 | | - whole buffer. Use the '[ and '] marks for the |
| 897 | + whole buffer. Use the |'[| and |']| marks for the |
897 | 898 | range of lines. |
898 | 899 | *FilterReadPost* |
899 | 900 | FilterReadPost After reading a file from a filter command. |
@@ -1480,6 +1481,13 @@ WinScrolled After any window in the current tab page |
1480 | 1481 | or changed width or height. See |
1481 | 1482 | |win-scrolled-resized|. |
1482 | 1483 |
|
| 1484 | + Note: This can not be skipped with |
| 1485 | + `:noautocmd`, because it triggers after |
| 1486 | + processing normal commands when Vim is back in |
| 1487 | + the main loop. If you want to disable this, |
| 1488 | + consider setting the 'eventignore' option |
| 1489 | + instead. |
| 1490 | + |
1483 | 1491 | The pattern is matched against the |window-ID| |
1484 | 1492 | of the first window that scrolled or resized. |
1485 | 1493 | Both <amatch> and <afile> are set to the |
|
0 commit comments