vim delete won't affect clipboard; claude-sonnet-4
dblume

dblume commited on 2025-06-10 14:37:42
Showing 2 changed files, with 13 additions and 1 deletions.

... ...
@@ -34,6 +34,12 @@ set title titlestring=%f%m\ -\ nvim
34 34
 "      Delete operations would overwrite clipboard before pasting.
35 35
 set clipboard+=unnamedplus
36 36
 
37
+" Deleting shouldn't overwrite the clipboard. Use yank when you want to copy.
38
+nnoremap d "_d
39
+nnoremap D "_D
40
+vnoremap d "_d
41
+vnoremap D "_D
42
+
37 43
 " Will remove these two remappings if unnamedplus (above) does the job
38 44
 " Yank and put into the system Clipboard (register + or *)
39 45
 " Otherwise make explicit commands "+yy "+y "+Y (or * instead of + as needed)
... ...
@@ -500,7 +506,7 @@ lua << EOF
500 506
       local chat = require('CopilotChat')
501 507
       -- https://github.com/CopilotC-Nvim/CopilotChat.nvim
502 508
       chat.setup({
503
-        model = 'claude-3.7-sonnet',
509
+        model = 'claude-sonnet-4',
504 510
 --        question_header = " 👤 ",
505 511
 --        answer_header = " 🤖 ",
506 512
 --        error_header = " ❗ ", 
... ...
@@ -22,6 +22,12 @@ set title titlestring=%f%m\ -\ vim
22 22
 "      Delete operations would overwrite clipboard before pasting.
23 23
 set clipboard=unnamed,unnamedplus
24 24
 
25
+" Deleting shouldn't overwrite the clipboard. Use yank when you want to copy.
26
+nnoremap d "_d
27
+nnoremap D "_D
28
+vnoremap d "_d
29
+vnoremap D "_D
30
+
25 31
 " Will remove these two remappings if unnamedplus (above) does the job
26 32
 " Yank and put into the system Clipboard (register + or *)
27 33
 " Otherwise make explicit commands "+yy "+y "+Y (or * instead of + as needed)
28 34