dblume commited on 2025-03-06 12:57:58
Showing 1 changed files, with 8 additions and 4 deletions.
Works a little differently than in nvim. Testing this out. Be sure to try combos of changes, deletes and puts, and changing the clipboard outside of vim.
... | ... |
@@ -18,12 +18,16 @@ set ruler " Show cursor pos on right side of status bar |
18 | 18 |
" Set the title of the terminal window. Consider changing titlestring, %t, %M |
19 | 19 |
set title titlestring=%f%m\ -\ vim |
20 | 20 |
|
21 |
+" N.B. Don't just use unnamed register for clipboard (set clipboard=unnamed) |
|
22 |
+" Delete operations would overwrite clipboard before pasting. |
|
23 |
+set clipboard=unnamed,unnamedplus |
|
24 |
+ |
|
25 |
+" Will remove these two remappings if unnamedplus (above) does the job |
|
21 | 26 |
" Yank and put into the system Clipboard (register + or *) |
22 | 27 |
" Otherwise make explicit commands "+yy "+y "+Y (or * instead of + as needed) |
23 |
-" N.B. Don't use unnamed register for clipboard (set clipboard=unnamed) |
|
24 |
-" Delete operations would overwrite clipboard before pasting. |
|
25 |
-nnoremap <leader>c "+ |
|
26 |
-vnoremap <leader>c "+ |
|
28 |
+" N.B. cscope_maps might assign <leader>c to its prefix. |
|
29 |
+"nnoremap <leader>c "+ |
|
30 |
+"vnoremap <leader>c "+ |
|
27 | 31 |
|
28 | 32 |
if v:version >= 703 |
29 | 33 |
" Do save the undo tree to file, but not in the local directory. |
30 | 34 |