vim copy non linewise without leading or trailing spaces

say*_*yth 3 vim

I am trying to create a mapping that will allow me to select a line of text non linewise so I can paste at curosr(not before or after) without introducing spaces that may have preceeded the line where it was yanked from.

This is what I was trying to do

 "copy non linewise
 nmap <leader>yy 0y$
Run Code Online (Sandbox Code Playgroud)

Nik*_*vda 5

nnoremap <Leader>yy ^yg_
Run Code Online (Sandbox Code Playgroud)

^g_分别类似于0$,但它们不包括空白字符。