File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 33helpname: 'autocmd'
44---
55< div id ='vimCodeElement '>
6- < a class ="Constant " href ="autocmd.html " name ="autocmd.txt "> autocmd.txt</ a > For < span class ="Identifier "> Vim バージョン 9.1.</ span > Last change: 2025 Apr 21 < br >
6+ < a class ="Constant " href ="autocmd.html " name ="autocmd.txt "> autocmd.txt</ a > For < span class ="Identifier "> Vim バージョン 9.1.</ span > Last change: 2025 Jun 19 < br >
77< br >
88< br >
99 < span class ="Identifier "> VIMリファレンスマニュアル by Bram Moolenaar</ span > < br >
132132< div class ="helpExample "> :au BufNewFile,BufRead *.html so <sfile>:h/html.vim</ div >
133133< br >
134134ここで < span class ="Special "> <sfile></ span > は、この行を含むファイルの名前に展開される。< br >
135+ ただし、< span class ="Special "> <sfile></ span > は関数内では異なる動作をするため、同じ目的を達成するには< br >
136+ < span class ="Special "> <script></ span > とともに < a class ="Comment " href ="eval.html#:execute "> :execute</ a > を使用する方が適切である:< br >
137+ < br >
138+ < div class ="helpExample "> :exe $'au BufNewFile,BufRead *.html so {expand("<script>:h")}/html.vim'</ div >
135139< br >
136140< a class ="Comment " href ="autocmd.html#:autocmd "> :autocmd</ a > は、すでに存在しているかどうかにかかわらず、自動コマンドのリストに< br >
137141追加する。.vimrc ファイルが2回読み込まれると、自動コマンドが2回表示される。こ< br >
You can’t perform that action at this time.
0 commit comments