網路論壇
登入
網路論壇
vim_use
會話群組
關於
提供意見
說明
setting clipboard register by vim9cmd or noremapping
瀏覽次數:9 次
跳到第一則未讀訊息
Ni Va
未讀,
2022年1月12日 上午8:18:09
2022/1/12
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者: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
未讀,
2022年1月12日 上午8:33:42
2022/1/12
回覆作者
登入以回覆作者
轉寄
登入以轉寄訊息
刪除
你的權限不足,無法在這個群組刪除訊息
複製連結
檢舉訊息
顯示原始貼文
該群組的電子郵件地址為匿名,或你需要檢視成員電子郵件地址的權限才能查看原始貼文
收件者:vim_use
Sorry solved as this :
nnoremap cp :vim9cmd @* = expand('%:p')<CR>
or from vim command line :
:vim9cmd @* = expand('%:p')
回覆所有人
回覆作者
轉寄
0 則新訊息