Synchronize vim's default register and clipboard
dblume

dblume commited on 2024-05-01 15:05:37
Showing 2 changed files, with 2 additions and 0 deletions.

... ...
@@ -16,6 +16,7 @@ set hidden          " Don't abandon Scratch buffer when hidden.
16 16
 set culopt=number   " Otherwise diff views have an underline. neovim issue 9800
17 17
 " Set the title of the terminal window. Consider changing titlestring, %t, %M
18 18
 set title titlestring=%f%m\ -\ nvim
19
+set clipboard^=unnamed  " Synchronize vim's default register and clipboard
19 20
 
20 21
 " Make j and k move to the next row, not file line
21 22
 nnoremap j gj
... ...
@@ -18,6 +18,7 @@ set ttimeoutlen=100 " Affects Esc key, not leader.
18 18
 set noruler         " Don't show cursor pos on right side of status bar
19 19
 " Set the title of the terminal window. Consider changing titlestring, %t, %M
20 20
 set title titlestring=%f%m\ -\ vim
21
+set clipboard^=unnamed  " Synchronize vim's default register and clipboard
21 22
 
22 23
 if v:version >= 703
23 24
   " Do save the undo tree to file, but not in the local directory.
24 25