Semi-OT: Getting back into programming

Ondrej Mihalyi mihalyi at matfyz.cz
Thu Jun 10 15:07:46 CEST 2004


Hello,

I also had the problem of deciding what IDE to use while programming recently.  My first choice was anjuta, cause I'm programming with gtk, and it resembled visual c++ or delphi which I was used to work with before.  I also tried Kdevelop, but it seemed to me very confusing.

Then I found out how to customize menus and hotkeys in gvim, played with it, and now I use gvim witch customized vimrc: I have custom menu Project with options like make, build, run, save project (I'm saving project using vim sessions), each of those could be accsessed by a keyboard shortcut - for anyone interested in my vimrc file: it's attached to my message (I'd appreciate from more skilled vim users some advice on how to make this script better, using variables or anything similar)
This script is easy to use and simple to understand (I believe), but maybe not very user friendly to configure (the executable binary has to be called main (or there has to be a symlink of that name), additional parameters to executable have to be written in file prgparams, pwd of vim has to be equal to pwd of project and project name has to be passed as environmental variable Projectname)

The only problem I had was how to work with multiple open files without having bunch of windows open.  I'm now using buffers and switching among them using detached buffers menu (I finally found use for the option of detaching menu items in GTK).  The only thing that bothers me is the necessity of saving work on a file before swithcing to another file and I didnt have time to play with that - any simple idea is welcome.

It seems that the project plugin for vim is a better alternative, however, I will have to learn how to use it as well as with any DE, and my custom vimrc came to seem very useful and simple to use 


Among other things, I got used to glade for designing the GTK part of the program and kdbg for debugging and I recommend both

Sorry for the long letter, I just had the feeling I have something to tell ya,

Happy coding :)     Ondrej MIhalyi


On Thu, 10 Jun 2004 08:11:22 -0400
Matthew Weier OPhinney <matthew-lists at weierophinney.net> wrote:

> -- Biju Chacko <botsie at xfce.org> wrote
> (on Thursday, 10 June 2004, 08:58 AM +0530):
> > On Wed, 09 Jun 2004 22:42:08 -0400
> > Joe Klemmer <klemmerj at webtrek.com> wrote:
> > > My question now is what tool/IDE/environment to use.  I currently
> > > have Code Crusader, CodeForge, Anjuta and, of course, the vim/nedit
> > > with-lots-of-xterms IDE.  I also have Borland C++ Builder X and
> > > KDevelop but they seem more for C++ than C, though I'm sure I could
> > > do C with them.  The problem with the IDE's, other than the
> > > vim/nedit option, is the steep learning curve they all have.  It's
> > > almost as much to learn the IDE as it is the language.
> > > 
> > > I would like to ask what others are using.  What is the preferred
> > > method or tools of development being used by you guys?  I sm leaning
> > > towards either Anjuta or the vim/nedit method but am not against
> > > using something else.  It would be good to be as compatible as
> > > possible with you guys.  I'm not against taking a few months to
> > > learn an IDE but I'd rather learn one than all of them.
> > 
> > Well, I find it difficult to use any editor other than vim, so I'm part
> > of the vim/xterm crowd. With vim's Project plugin, I find I don't really
> > need anything else.
> 
> I was just about to write the same thing. Project is nice, because then
> you don't need to have a whole bunch of windows open, or spend a lot of
> time trying to figure out what buffer each file is in. It works in gvim
> as well -- which gives nice integration with a mouse, if you desire
> that.  (I keep forgetting about that myself as I rarely move to my mouse
> when editing.)
> 
> The other nice thing, I've heard (not being a C programmer myself), is
> that you can easily setup macros within Project to compile when changes
> are made to a file (I've used the feature briefly when trying out AAP
> for a web project, and it was as simple as a keystroke).
> 
> 
> -- 
> Matthew Weier O'Phinney
> http://weierophinney.net/matthew/
> _______________________________________________
> Xfce4-dev mailing list
> Xfce4-dev at xfce.org
> http://lunar-linux.org/mailman/listinfo/xfce4-dev
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vimrc
Type: application/octet-stream
Size: 1141 bytes
Desc: not available
URL: <http://mail.xfce.org/pipermail/xfce4-dev/attachments/20040610/10269b66/attachment.obj>


More information about the Xfce4-dev mailing list