Vim RecallEnglish

建立使用者自訂指令

:command

範例

一般模式 0 / 2

建立使用者自訂指令。

範例使用者指令

[沒有 Example 指令]

範例變數

g:exampleCount
1
操作前後

操作前

範例使用者指令

[沒有 Example 指令]

範例變數

g:exampleCount
1

操作後

範例使用者指令

Name              Args Address Complete    Definition
    Example           0                        let g:exampleCount = 2

範例變數

g:exampleCount
1

從一般模式開始。

範例緩衝區
one two
three four
five six
keep
游標位於第 1 行,第 1 欄
詳細說明與 Vim 文件

範例已在 Vim 重播驗證

本例輸入 :command Example let g:exampleCount = 2 後按 Enter。可簡寫為 :com。