Getting firefox to launch gvim
(in General on 2005/08/31)When you call gvim, which is a link to vim, the application itself is supposed to look at $0 and determine if you want the gui (you can also pass -g). Somewhere along the line, FireFox got too clever for it’s own good and resolved the symlink ahead of calling the program you’re trying to “Open With…” — so that VIM never sees that you tried to call it as gvim. You also can’t provide flags in that dialog :/
But you can create a 1-liner shell script that invokes gvim $* and then point FireFox at it.
Of course it’s not that easy — if you forget the shebang line (#!/bin/sh
Anything that saves me the grief of dealing with gedit as a default.
Comments Off

