You are not logged in.
Hi, I want to know something. In Eclipse, when I do the following with a file: Open With -> System Editor, GVIM is opened, and I would want to change this behaviour to another editor.
How Can I perform this?
Greetings
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
possibly the env::
export VISUAL="editor [args](e.g: geany -i)"
export EDITOR=$VISUAL
you can set this in a shellscript start starts the eclipse ide .. but it's better to set it globally from /etc/profile that way other applications benefit
Last edited by kumico (2007-12-01 02:07:43)
Offline
It doesn't work to eclipse... I don't know why, always gvim is opened... If I uninstall gvim, eclipse give me an error telling to me that was impossible to open the system editor.
The variables mentioned above initially were empty (without content).
Any more ideas?
Greetings
Only deaths can see the end of battles.
Blog: http://djmartinez.co.cc -> The life of a Computer Engineer
Offline
It doesn't work to eclipse... I don't know why, always gvim is opened... If I uninstall gvim, eclipse give me an error telling to me that was impossible to open the system editor.
The variables mentioned above initially were empty (without content).
Any more ideas?
Greetings
I'm pretty sure those ENV variables are only used for terminal / console operations, not GUI functionality. I think the confusing issue here, perhaps, was that Eclipse calls the option 'system editor.'
What it is referring to, instead, is the application set in your file manager for opening a particular file type. For me, it opens Scite, as I have Scite set in Nautilus to open most 'text' types. However, I can change the behavior to open Komodo Edit for *.py files by simply right clicking on any *.py file, selecting 'Properties' and setting the appropriate editor in the 'Open with' tab. Now *.py files open in Komodo in any circumstance, including selecting 'Open wirh > system editor' in Eclipse.
The procedure will be slightly different depending on your DE / file manager.
Last edited by MrWeatherbee (2007-12-01 10:26:56)
Offline