Wednesday, January 12, 2022

setting clipboard register by vim9cmd or noremapping

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>

--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/vim_use/9054adc2-fa69-486a-977f-89b69e52eff8n%40googlegroups.com.

No comments:

Post a Comment