使用 clipmethod 選項重新偵測剪貼簿方法
:clipreset
範例
一般模式 0 / 2命令列模式 1 / 2一般模式 2 / 2使用 clipmethod 選項重新偵測剪貼簿方法。
剪貼簿方式
- clipmethod(空字串)
- v:clipmethod
無
指令已輸入。按 Enter 執行。
剪貼簿方式
- clipmethod(空字串)
- v:clipmethod
無
命令列
- 輸入的文字
:clipreset- 插入偏移量
10
當 clipmethod 為空時,:clipreset 會將 v:clipmethod 保持為 none,並回報 Could not find a way to access the clipboard。原生 GUI 剪貼簿處理仍保持獨立。none 並不表示 GUI 剪貼簿存取不可用。
剪貼簿方式
- clipmethod(空字串)
- v:clipmethod
無
指令訊息
- 輸出
Could not find a way to access the clipboard.
操作前後
操作前
剪貼簿方式
- 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。