首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 其他相关 >

GVIM脚本——打开目前文件所在位置

2012-09-03 
GVIM脚本——打开当前文件所在位置function OpenFileLocation()if ( expand(%) ! )execute !start ex

GVIM脚本——打开当前文件所在位置

function OpenFileLocation()if ( expand("%") != "" )execute "!start explorer /select, %" elseexecute "!start explorer /select, %:p:h"endifendfunctionmap gb <ESC>:call OpenFileLocation()<CR>"我的第一个VIM脚本。"功能:当前文件所在位置,同时不阻塞当前窗口。

热点排行