码迷,mamicode.com
首页 > Windows程序 > 详细

vim - Putting the current file on the Windows clipboard

时间:2016-11-29 19:01:19      阅读:290      评论:0      收藏:0      [点我收藏+]

标签:window   cli   http   ash   ace   .com   put   any   oar   

http://vim.wikia.com/wiki/VimTip432

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

标签:window   cli   http   ash   ace   .com   put   any   oar   

原文地址:http://www.cnblogs.com/cnblogist/p/6114617.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!