後續指令不觸發自動指令
:noautocmd
範例
一般模式 0 / 4命令列模式 1 / 4一般模式 2 / 4命令列模式 3 / 4一般模式 4 / 4後續指令不觸發自動指令。
範例自動指令
--- Autocommands ---
ExampleGroup User
ExampleEvent
let g:exampleCount += 1範例自動指令群組
ExampleGroup 存在
範例變數
- g:exampleCount
0
指令已輸入。按 Enter 執行。
範例自動指令
--- Autocommands ---
ExampleGroup User
ExampleEvent
let g:exampleCount += 1範例自動指令群組
ExampleGroup 存在
範例變數
- g:exampleCount
0
已按下這個鍵,請接著按下一個鍵
範例自動指令
--- Autocommands ---
ExampleGroup User
ExampleEvent
let g:exampleCount += 1範例自動指令群組
ExampleGroup 存在
範例變數
- g:exampleCount
0
指令已輸入。按 Enter 執行。
範例自動指令
--- Autocommands ---
ExampleGroup User
ExampleEvent
let g:exampleCount += 1範例自動指令群組
ExampleGroup 存在
範例變數
- g:exampleCount
0
指令已執行
範例自動指令
--- Autocommands ---
ExampleGroup User
ExampleEvent
let g:exampleCount += 1範例自動指令群組
ExampleGroup 存在
範例變數
- g:exampleCount
1
操作前後
操作前
範例自動指令
--- Autocommands ---
ExampleGroup User
ExampleEvent
let g:exampleCount += 1範例自動指令群組
ExampleGroup 存在
範例變數
- g:exampleCount
0
操作後
範例自動指令
--- Autocommands ---
ExampleGroup User
ExampleEvent
let g:exampleCount += 1範例自動指令群組
ExampleGroup 存在
範例變數
- g:exampleCount
1
從一般模式開始。ruler 選項已關閉(noruler),因此在 80 欄寬的終端機中,no-matching-autocommands 訊息能容納於指令列空間內。
one two
three four
five six
keep游標位於第 1 行,第 1 欄詳細說明與 Vim 文件
範例已在 Vim 重播驗證
本例輸入 :noautocmd doautocmd ExampleGroup User ExampleEvent 後按 Enter。可簡寫為 :noa。