xdebug.file_link_format=gvim://%f@%l
#!/bin/sh

f=`echo $1 | cut -d @ -f 1 | sed 's/gvim:\/\///'`
l=`echo $1 | cut -d @ -f 2`

gvim --remote-tab +$l $f
Add the new boolean config value (about:config) "network.protocol-handler.expose.gvim" as false. First time you click it, select the shell script.


Textmate:

xdebug.file_link_format=txmt://open/?url=file://%f&line=%l