Vim RecallEnglish

使用 clipmethod 選項重新偵測剪貼簿方法

:clipreset

範例

一般模式 0 / 2

使用 clipmethod 選項重新偵測剪貼簿方法。

剪貼簿方式

clipmethod(空字串)
v:clipmethod
無
操作前後

操作前

剪貼簿方式

clipmethod(空字串)
v:clipmethod
無

操作後

剪貼簿方式

clipmethod(空字串)
v:clipmethod
無

指令訊息

輸出
Could not find a way to access the clipboard.

依 Vim 文件示範。固定版本 Vim 9.2.1341。已初始化具備 +clipboard 與 +eval 之 GUI。clipmethod 為空且未設定任何 provider。Vim 不擁有任何剪貼簿選取。英文訊息,至少 80 欄寬,cmdheight=1,nomore 且無待處理輸出。僅為文件示意,無實際剪貼簿存取或執行。當 clipmethod 為空時,:clipreset 會將 v:clipmethod 保持為 none,並回報 Could not find a way to access the clipboard。原生 GUI 剪貼簿處理仍保持獨立。none 並不表示 GUI 剪貼簿存取不可用。主要說明::clipreset, 'clipmethod', v:clipmethod。

範例緩衝區
alpha
beta
gamma
游標位於第 1 行,第 1 欄
詳細說明與 Vim 文件

本例輸入 :clipreset 後按 Enter。可簡寫為 :clip。