diff --git a/runtime/doc/autocmd.txt b/runtime/doc/autocmd.txt index 204a9117c4..d11cb1f185 100644 --- a/runtime/doc/autocmd.txt +++ b/runtime/doc/autocmd.txt @@ -1,4 +1,4 @@ -*autocmd.txt* For Vim version 9.1. Last change: 2025 Apr 21 +*autocmd.txt* For Vim version 9.1. Last change: 2025 Jun 19 VIM REFERENCE MANUAL by Bram Moolenaar @@ -130,6 +130,10 @@ exception is that "" is expanded when the autocmd is defined. Example: :au BufNewFile,BufRead *.html so :h/html.vim Here Vim expands to the name of the file containing this line. +However, works differently in a function, in which case it's better to +use `:execute` with