[ text blocks reordered to reflect chronology ]
Mark Palmer wrote:
On 9/18/06, Manu Anand <[EMAIL PROTECTED]> wrote:
On 9/18/06, Mark Palmer <[EMAIL PROTECTED]> wrote:
> On 9/9/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
> > Mark Palmer wrote:
> > > Does any one know how to open vim (any version) from eclipse as a ole
> > > component, or bonobo?
> > >
> > > -mark
> > >
> >
> > Hmmm... Does it answer your question if I say that the OLE interface can
> > only be included in native-Windows versions of gvim ?
> >
> > If it doesn't, see ":help if_ole.txt" and/or wait for an answer from
> > someone more competent than I am.
> >
> >
> > Best regards,
> > Tony.
> >
>
> I am mainly interested in getting eclipse to work with OLE, as I am
> required to use Windows
> at work.
>
> Was just interested in bonobo out of interest. :-)
>
> Does anyone know how to get vim to work as ole component in eclipse?
>
> -Mark
>

Hi Mark:

You may like to try following steps

1. Go to General>Editors>File Association menu
2. Click on "Add" and add the extension of file you want VIM to open.
For ex  *.java
3. Select VIM by selecting "External Programs" and browsing to VIM installation.

Alternatively if that extension is already present, select the same
and add VIM from the "Add" button in the bottom column.

HTH
Manu





> I gave that a whirl (again) but that simply opens vim as an external
> editor rather than as an ole component. The Eclipse manual suggests
> that 'if the application is properly registered as an ole application
> it should be available in the list of external applications when you
> select external editors' so either the vim ole does meet all the
> requirement of a what eclipse deems proper 'ole component' or I doing
> something wrong.
>
> -Mark
>

1. You should use gvim.exe, not vim.exe

2. Your gvim version should have OLE support compiled-in (e.g., "with OLE support" should appear on one of the first five lines in the output of the ":version" command).

3. Your gvim program should be registered with Windows as an OLE server. It normally does that (with a yes/no prompt) the first time it is run; or you can run "gvim -register" to make sure that it does register itself. You may need to log in to Windows on an administrator account to do that.

See
        :help -register
        :help -unregister

4. I don't know Eclipse. You may have to tell it that gvim is available as an OLE server.

5. Please read ":help if_ole.txt" (the whole help file) attentively. If you have Visual Basic, Python, or Perl, you may try the examples given there to see how the result resembles, or differs from, what you see under Eclipse.


Best regards,
Tony.

Reply via email to