在Sou rce Insight 中添加自定义功能的步骤如下 1
Source Insight 中,Options->Custom Commands
,New Command name 随便写,我的是"Edit with Vim" 2
Run 中写入: "C:\Program Files\Vim\vim63\gvim
exe" --remote-silent +%l %f 意思是在当前已经打开的gvim 窗口里面打开当前的文件,并且跳转到指定行 %l 为当前的行号,%f 为文件名 使用 --remote-silent 的作用是,如果已经打开了对应文件,就不会打开第二次,而是在已经打开的文件里跳转到对应行 3
还是同一个对话框里面,选择Keys->Assign New Key
->按F12,如果你已经将F12 设置给其他命令,选择其他的按键就行了 下面是一些常用自定义功能:( CUSTOM COMMANDS ) 打开资源管理器并选中当前文件 ShellExecute open explorer /e,/select,%f 查看log "C:\Program Files\TortoiseSVN\bin\TortoiseProc
exe" /command:log /path:%f /notempfile /closeonend diff "C:\Program Files\TortoiseSVN\bin\TortoiseProc
exe" /command:diff /path:%f /notempfile /closeonend 取得锁定(check out) "C:\Program Files\TortoiseSVN\bin\TortoiseProc
exe" /command:lock /path:%f /notempfile /closeonen