Home » Language IDEs » C / C++ IDE (CDT) » Text editor issues
Text editor issues [message #14275] |
Sun, 03 February 2002 12:59  |
Eclipse User |
|
|
|
Originally posted by: danieleliasson.chello.se
I read the thread where Johan Walles wanted to make the text editor in
eclipse more like his emacs, and it came to me why I couldn't quite feel
comfortable with eclipse.
I use VIM as a text editor, and I just can't help it, I love it. Obviously,
you can't just change some key bindings to make LPEX be like VIM, because of
the fundamentally different editing styles. So what I want to know is: is
there any way I could integrate VIM with eclipse so I can benefit from all
the bells & whistles of a mature IDE, while still being able to edit text
without accidentally filling it with 6x5jp2kdd and stuff like that?
// Daniel Eliasson
|
|
|
Re: Text editor issues [message #14310 is a reply to message #14275] |
Sun, 03 February 2002 21:02   |
Eclipse User |
|
|
|
Originally posted by: daveange.idirect.com
There are a couple ways that you could use VIM in Eclipse
The easy, but unintegrated way is to define the external editor, VIM, as the
default editor for certain file types (based on file suffixes). In the
Preferences dialog, choose Workbench->File Editors. In the File Editors
preference page, you can define editors to be associated with a particular
file type. In the Editor Selection dialog, choose "External Programs" and
then browse to find the editor of your preference. When you try to open a
file in Eclipse after you have set your default editors, VIM will be
launched instead of the previous default. Unfortunately, there is no
communication between editor and IDE so you can't jump to source locations
or set breakpoints in an external editor.
The ideal solution is to write a new editor plugin that embeds VIM. There
is documentation in the Eclipse help on how to write editor parts using the
Eclipse editor framework. I'm not sure how difficult it is to embed VIM but
I'm sure, if it were accomplished, this editor would be very popular, not
only in CDT, but on other areas too.
I hope this helps answer your question.
Dave
Daniel Eliasson wrote in message ...
>I read the thread where Johan Walles wanted to make the text editor in
>eclipse more like his emacs, and it came to me why I couldn't quite feel
>comfortable with eclipse.
>
>I use VIM as a text editor, and I just can't help it, I love it. Obviously,
>you can't just change some key bindings to make LPEX be like VIM, because
of
>the fundamentally different editing styles. So what I want to know is: is
>there any way I could integrate VIM with eclipse so I can benefit from all
>the bells & whistles of a mature IDE, while still being able to edit text
>without accidentally filling it with 6x5jp2kdd and stuff like that?
>
>// Daniel Eliasson
>
>
|
|
|
Re: Text editor issues [message #15829 is a reply to message #14310] |
Mon, 04 February 2002 09:00   |
Eclipse User |
|
|
|
Originally posted by: danieleliasson.chello.se
Hmm.. seeing as how I'm a junior programmer, making a plugin might be just
beyond my skills. But thanks for the tip about setting it as an external
editor, it's better than nothing.
// Daniel Eliasson
"Dave" <daveange@idirect.com> wrote in message
news:a3kpd4$uva$1@rogue.oti.com...
> There are a couple ways that you could use VIM in Eclipse
>
> The easy, but unintegrated way is to define the external editor, VIM, as
the
> default editor for certain file types (based on file suffixes). In the
> Preferences dialog, choose Workbench->File Editors. In the File Editors
> preference page, you can define editors to be associated with a particular
> file type. In the Editor Selection dialog, choose "External Programs"
and
> then browse to find the editor of your preference. When you try to open a
> file in Eclipse after you have set your default editors, VIM will be
> launched instead of the previous default. Unfortunately, there is no
> communication between editor and IDE so you can't jump to source locations
> or set breakpoints in an external editor.
>
> The ideal solution is to write a new editor plugin that embeds VIM. There
> is documentation in the Eclipse help on how to write editor parts using
the
> Eclipse editor framework. I'm not sure how difficult it is to embed VIM
but
> I'm sure, if it were accomplished, this editor would be very popular, not
> only in CDT, but on other areas too.
>
> I hope this helps answer your question.
>
> Dave
>
>
> Daniel Eliasson wrote in message ...
> >I read the thread where Johan Walles wanted to make the text editor in
> >eclipse more like his emacs, and it came to me why I couldn't quite feel
> >comfortable with eclipse.
> >
> >I use VIM as a text editor, and I just can't help it, I love it.
Obviously,
> >you can't just change some key bindings to make LPEX be like VIM, because
> of
> >the fundamentally different editing styles. So what I want to know is: is
> >there any way I could integrate VIM with eclipse so I can benefit from
all
> >the bells & whistles of a mature IDE, while still being able to edit text
> >without accidentally filling it with 6x5jp2kdd and stuff like that?
> >
> >// Daniel Eliasson
> >
> >
>
>
|
|
|
Re: Text editor issues [message #15847 is a reply to message #14310] |
Mon, 04 February 2002 14:28   |
Eclipse User |
|
|
|
You probably want to use /usr/X11R6/bin/gvim, the graphical VIM, so it spawns a window.
I'll second Dave's comments. Both VIM and Xemacs would be valuable to integrate properly and
would make nice plugin projects.
There are a couple of options for VIM integration that I am aware of:
Some code was added to VIM to integrate it into Sun Workshop,
it might be possible to reuse this, ref. http://www.vim.org/html/workshop.html
There is a project to create a Bonobo component (Bonobo is the GNOME version of OLE)
that wraps VIM, ref. http://www.opensky.ca/gnome-vim/
Brian
Dave wrote:
> The ideal solution is to write a new editor plugin that embeds VIM. There
> is documentation in the Eclipse help on how to write editor parts using the
> Eclipse editor framework. I'm not sure how difficult it is to embed VIM but
> I'm sure, if it were accomplished, this editor would be very popular, not
> only in CDT, but on other areas too.
|
|
|
Re: Text editor issues [message #15864 is a reply to message #14275] |
Tue, 05 February 2002 00:02  |
Eclipse User |
|
|
|
Originally posted by: adrianstoristeanu.sympatico.ca
Daniel,
While it's true that no emulation in the world (either via the "set
keyAction." definitions or, in true open-source fashion, fiddling with
the vi profile code, com\ibm\lpex\core\ViHandler.java) will make LPEX
(or another programmable editor) behave like a true VI(M), some of the
6x5jp2kdd 1.- will be resolved when Eclipse implements key-profile
customization (mentioned before in here), 2.- will (until then) also
happen if integrating a real VIM into Eclipse...
Daniel Eliasson wrote:
>
> I read the thread where Johan Walles wanted to make the text editor in
> eclipse more like his emacs, and it came to me why I couldn't quite feel
> comfortable with eclipse.
>
> I use VIM as a text editor, and I just can't help it, I love it. Obviously,
> you can't just change some key bindings to make LPEX be like VIM, because of
> the fundamentally different editing styles. So what I want to know is: is
> there any way I could integrate VIM with eclipse so I can benefit from all
> the bells & whistles of a mature IDE, while still being able to edit text
> without accidentally filling it with 6x5jp2kdd and stuff like that?
>
> // Daniel Eliasson
|
|
|
Goto Forum:
Current Time: Mon Jul 21 21:42:02 EDT 2025
Powered by FUDForum. Page generated in 0.26652 seconds
|