Followed all those steps, It seems that eclipse does not recognise vim
as an ole component, It can recognise ie and word, so theoretically it
can be done.

What I did do get better integration with eclipse is to write a one line .bat

like so...

gvim.exe --remote-silent %1

And associated the non java files to the bat file, that way it opens
non-java files in the same instance of vim, and with the tab plugin I
get close to what I wanted.

Still if any one knows how to get vim to work as an ole component in
eclipse that would be nice.

Thanks for all the help

-Mark


On 9/19/06, A.J.Mechelynck <[EMAIL PROTECTED]> wrote:
[ 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