Vim RecallEnglish

移除變數

:unlet

範例

一般模式 0 / 2

移除變數。

範例變數

g:exampleCount
1

範例變數

g:exampleItems
['one', 'two']
操作前後

操作前

範例變數

g:exampleCount
1

範例變數

g:exampleItems
['one', 'two']

操作後

範例變數

g:exampleCount
[尚未定義]

範例變數

g:exampleItems
['one', 'two']

從一般模式開始。這些變數與清單值僅存在於乾淨的範例 Vim 程序中。

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

範例已在 Vim 重播驗證

本例輸入 :unlet g:exampleCount 後按 Enter。可簡寫為 :unl。