From e795349316011afc55f1f18b769be5386823752a Mon Sep 17 00:00:00 2001 From: Yuan Chiu Date: Sun, 25 May 2025 08:42:53 +0800 Subject: [PATCH] =?UTF-8?q?nvim:=20=E5=9C=A8GUI=E7=A8=8B=E5=BC=8F=E4=B9=9F?= =?UTF-8?q?=E8=83=BD=E4=BD=BF=E7=94=A8Ctrl+Shift+v=E8=B2=BC=E4=B8=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dot_config/nvim/exact_lua/exact_config/keymaps.lua | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/dot_config/nvim/exact_lua/exact_config/keymaps.lua b/dot_config/nvim/exact_lua/exact_config/keymaps.lua index a929f4d..832c9f0 100644 --- a/dot_config/nvim/exact_lua/exact_config/keymaps.lua +++ b/dot_config/nvim/exact_lua/exact_config/keymaps.lua @@ -16,6 +16,14 @@ neomap('i', '', '"+pa', { noremap = true, silent = true }) -- Insert M neomap('v', '', '"+y', { noremap = true, silent = true }) -- Visual Mode 下的 Ctrl+C 複製 neomap('v', '', '"+d', { noremap = true, silent = true }) -- Visual Mode 下的 Ctrl+X 剪下 neomap('v', '', '"+p', { noremap = true, silent = true }) -- Visual Mode 下的 Ctrl+V 貼上 +-- 給GUI用的 +-- Normal mode: Ctrl+Shift+V 貼上系統剪貼簿 +vim.keymap.set('n', '', '"+p', { noremap = true, silent = true }) +-- Insert mode: Ctrl+Shift+V 插入系統剪貼簿內容 +vim.keymap.set('i', '', '+', { noremap = true, silent = true }) +-- Terminal mode: Ctrl+Shift+V 回 normal mode,貼上剪貼簿,再進入 insert 模式 +vim.keymap.set('t', '', [["+pi]], { noremap = true, silent = true }) + -- 單字的左右移動 neomap('n', '', 'w', { noremap = true, silent = true })