Putting the current file on the Windows clipboard
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