当前位置:首页 > Windows程序 > 正文

Putting the current file on the Windows clipboard

2021-03-10 Windows程序

command! Copyfile let @*=substitute(expand("%:p"), ‘/‘, ‘\‘, ‘g‘)
command! Copyfile let @+=substitute(expand("%:p"), ‘/‘, ‘\‘, ‘g‘)
This copies the entire path and filename of the current file (with any slashes replaced with backslashes) onto the clipboard.

vim - Putting the current file on the Windows clipboard

温馨提示: 本文由Jm博客推荐,转载请保留链接: https://www.jmwww.net/file/58705.html