Allow setting a default register for Myank
I am on macos I have my clipboard set to the system clipboard with vim.opt.clipboard = "unnamed".
This change lets you set the default register for Myank (so I can yank to system clipboard).
Hey! Yank to system is implemented but it was undocumented. You can choose the register as the first argument to Myank, so :'<,'>Myank * (visual select + Myank) should put the text in your system clipboard. Let me know if that works.
Sorry for the delay here. Yep setting the register as the first argument works, but I found it less convenient than being able to set a default. I also didn't find a way to just rewrap the command but I'm not super strong with vim.
You could add a vmap like so: vmap <leader>y :Myank *<CR>. Though it might be good to make including diagnostics configurable?
Closing with docs update in a0de027