Open files with Vim under Gnome
Entry Nr. 392, by user 1
|Put this in a file called open_file_in_vim.sh
gksu "/usr/bin/x-terminal-emulator -e vim '$1'"
Now you can use the "Open File with" command and point to that file. This also works, when telling Firefox, which App to use to open certain files.
You might want to teach Firefox to allow local files to be loaded. I added this to the prefs.js file in my Firefox profile folder: