GVIM脚本——打开当前文件所在位置
GVIM脚本——打开当前文件所在位置
GVIM脚本——打开当前文件所在位置
[plain]
function OpenFileLocation()
if ( expand("%") != "" )
execute "!start explorer /select, %"
else www.2cto.com
execute "!start explorer /select, %:p:h"
endif
endfunction
map gb <ESC>:call OpenFileLocation()<CR>
"我的第一个VIM脚本。
"功能:当前文件所在位置,同时不阻塞当前窗口。
评论暂时关闭