gedit in this thread pretty much raised my interest as a light weight editor / IDE for R. I was happy to see that there is a .dmg for Mac OS X, but I still wonder where / how to install plugins, in particular this one.

Is it even possible?

link|improve this question
3  
Gedit on OSX, seriously?! Have you checked out TextMate or SubEthaEdit? – Nils Aug 3 '10 at 12:44
I have TextWrangler for the light weight stuff and Eclipse for everything else. Also like Aptana Studio. The reason why I looked at gedit for Mac OS was that it was recommended by some SOers for use with R. – ran2 Aug 3 '10 at 12:50
Ditto on TextMate, which has good integration with R. But you may also consider emacs/ess (or Vim with Vim-r-plugin2), which can follow you to every platform and have a huge support base. – richardh Aug 3 '10 at 13:08
@Nils Some people don't think you should have to pay for a text editor. – Jeff Sep 25 '11 at 22:12
feedback

migrated from stackoverflow.com Aug 3 '10 at 13:20

This question came from our site for professional and enthusiast programmers.

5 Answers

You can also install gedit using macports (which builds everything from source), or using fink (with pre-built binaries). I don't use gedit much, but I suppose that if the add-on you want comes as a source-code tarball, then one of these options may be more easily extendable/configurable than if gedit is installed with a .dmg.

link|improve this answer
So.. it doesn't work with the .dmg? Probably will stay with Komodo / Sciviews-K then. I was looking for easy to configure light weight stuff as an Eclipse / StatET alternative. – ran2 Aug 3 '10 at 12:52
feedback

I'm trying to do this too without much luck. I have got a bit further though. The error message when trying to load the R integration is as follows

  Traceback (most recent call last):
  File "/Applications/gedit.app/Contents/Resources/lib/gedit-2/plugins/RCtrl.py", line 49, in <module>
    import vte
ImportError: No module named vte

** (gedit-bin:11508): WARNING **: Error loading plugin 'R integration'

So it looks like you need to install the python vte library on OS X somehow but I couldn't work that out.

link|improve this answer
feedback

To install Gedit plugins, you need to go into the gedit.app package:

  1. Right click your Gedit app icon and select 'Show Package Contents'
  2. Navigate to Contents/Resources/lib/gedit-2/plugins
  3. Drop your plugins into that directory
  4. Restart gedit and activate them normally (Preferences > Plugins)

FWIW, Gedit has some advantages (and few drawbacks) over TextMate. I'm switching over today for split panes (available through a plugin).

link|improve this answer
This doesn't seem to work with any plugins I have tried. They all crash with a different error. – Imran Jul 4 '11 at 8:21
feedback

Just like on Linux, you can put it into ~/.gnome2/gedit/plugins (where ~ is your home directory).

Here are the commands that installed the AutoTab plugin which immediately after appeared in the Plugins section of Preferences:

mkdir -p ~/.gnome2/gedit/plugins
cp autotab.gedit-plugin  autotab.py ~/.gnome2/gedit/plugins
link|improve this answer
Does it run? Can you check the box next to AutoTab in Preferences without it crashing? – Imran Jul 4 '11 at 8:50
feedback

MacPorts seems to support it:

$ port search gedit
gedit @2.26.3 (gnome, editors)
    GNOME editor.

gedit-plugins @2.26.3 (gnome, editors)
    Plug-ins for GEdit
link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.