Groups
Sign in
Groups
vim_use
Conversations
About
Send feedback
Help
setting clipboard register by vim9cmd or noremapping
9 views
Skip to first unread message
Ni Va
unread,
Jan 12, 2022, 8:18:09 AM
1/12/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim_use
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')<CR>
Ni Va
unread,
Jan 12, 2022, 8:33:42 AM
1/12/22
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to vim_use
Sorry solved as this :
nnoremap cp :vim9cmd @* = expand('%:p')<CR>
or from vim command line :
:vim9cmd @* = expand('%:p')
Reply all
Reply to author
Forward
0 new messages