Sorry solved as this :
nnoremap cp:vim9cmd @* = expand('%:p')
or from vim command line :
:vim9cmd @* = expand('%:p')
Le mercredi 12 janvier 2022 à 14:18:09 UTC+1, Ni Va a écrit :
> Hi,
>
> Just would like to set clipboard register value to path of my current
> opened file.
>
> but
Hi,
Just would like to set clipboard register value to path of my current
opened file.
but it seems to fail trying these :
:vim9cmd @"* = expand('%:p')
or in $MYVIMRC
nnoremap cp:vim9cmd @"* = expand('%:p')
--
--
You received this message from the "vim_use" maillist.
Do