gibney.org
:
Technology
:
Vim
:
Open files with Vim under Gnome
(Entry Nr. 392, by user 1 |
edit
)
Put this in a file called open_file_in_vim.sh <br> <br><div class=div_content_code>#!/bin/bash <br>gksu "/usr/bin/x-terminal-emulator -e vim '$1'"</div> <br> <br>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. <br> <br>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: <br> <br><div class=div_content_code>user_pref("capability.policy.policynames", "localfilelinks"); <br>user_pref("capability.policy.localfilelinks.sites", "http://comosyde"); <br>user_pref("capability.policy.localfilelinks.checkloaduri.enabled", "allAccess");</div>
Create a new entry at this position