Click to See Complete Forum and Search --> : Best c++ editor?


SolidPez
10-29-2002, 05:01 PM
What is the best program for editing/writing c++ programs in, not neccesaryily compiling them too. Could I use emacs? I'm not sure I want to use an editor I'll have to download because I don't know how to install programs from their source.

z0mbix
10-29-2002, 05:49 PM
Originally posted by SolidPez
What is the best program for editing/writing c++ programs in, not neccesaryily compiling them too. Could I use emacs? I'm not sure I want to use an editor I'll have to download because I don't know how to install programs from their source.

Yeah, you can use emacs or vim, or any of the IDE's available. I'm just starting C so don't know which to use for C++ but have a look on freshmeat.net for IDE's and Editors for C++ and there should be quite a selection. I like Anjuta for C, maybe there's a cool C++ alternative :)

bskahan
10-29-2002, 06:24 PM
vim

vim is hands down the best code editor out there, (unless you have 6 fingers, in which case emacs is probably just as good). if you prefer an ide type environment fear not vim will soon (3.2) be easily embedded into kdevelop. check out a bunch of vim screens at
http://www.etria.com/vim.php
and vim scripts/plugins/tips/etc at
http://www.vim.org

SolidPez
10-29-2002, 06:27 PM
Anjuta also compiles C++, I'd like to install it, but there's some confusion.

There are many files listed in the downloads section, there is the anjuta.i386.rpm, the src.rpm, the tar.gz.rpm, the tar.rpm, and the deb.rpm.

Do I have to download all of these, are they dependencies for one another?

Also if I download and ran these would they just install as the mandrake rpms, whcich require zero compiling of source code to install the program? I know some installs are just source code you have to build yourself, is anjuta like that?

SolidPez
10-29-2002, 08:37 PM
bump

Kenno
10-30-2002, 01:27 AM
If you use RedHat, download the anjuta.i386.rpm, in the terminal, su as root, and type: rpm -i anjuta.i386.rpm

JockVSJock
10-30-2002, 12:23 PM
I really, really like VIM for work in C++ and C.

I like the color coding for it and the power and flexibility, and infact I won't do any programming on anything else but VIM.

thanks

-Chris

mrBen
10-30-2002, 12:34 PM
Kdevelop is supposed to be good.

The new version of Kylix now supports C++, so if you're looking for a RAD rather than an IDE then it's probably worth look.

Mandrel
10-31-2002, 02:26 PM
I like Nedit (http://www.nedit.org) . It color-codes like 40 different languages, and you can configure it to compile for you, it you want.

busa_blade
10-31-2002, 02:39 PM
If you go to freshrpms.net and download apt. You can download and install rpms (in redhat or debian) with apt-get -f install "package".

Installing from source is easy.
tar -zxvf source.tar.gz

cd source_directory
make
make install (usually requires root privleges)

Ludootje
11-03-2002, 03:15 PM
Originally posted by busa_blade
If you go to freshrpms.net and download apt. You can download and install rpms (in redhat or debian) with apt-get -f install "package".

Installing from source is easy.
tar -zxvf source.tar.gz

cd source_directory
make
make install (usually requires root privleges)
you forgot ./configure which comes before make :)
personally, I use
./configure
make
make check
su -c 'make install'
make clean

shadowrider
11-03-2002, 05:59 PM
i'm using suse 8.1 and the latest vim (vim 6.1.150)
but i don't have the syntax highlighting eventhough i'm set the scheme to be vim color or linux color.
any help?

busa_blade
11-03-2002, 08:16 PM
Thanks... Somedays I swear I leave my head in the bed in the mornings. :)

you forgot ./configure which comes before make
personally, I use
./configure
make
make check
su -c 'make install'
make clean

swangods
11-03-2002, 08:27 PM
http://linuxnewbie.org/forum/showthread.php?s=&postid=391286#post391286

See the above forum for a recent discussion.

I use VIM for regular everyday C++ straight editing, but Anjuta for when I feel like doing something in a "formal" IDE with some bells and whistles.

And, actually, despite a HUGE amount of bloatware wth the whole .NET framework bit (which took 45+ mins to install on my normally speedy system), MSVC++ .NET is exceptionally useful for getting things done.

swangods
11-03-2002, 08:29 PM
Originally posted by shadowrider
i'm using suse 8.1 and the latest vim (vim 6.1.150)
but i don't have the syntax highlighting eventhough i'm set the scheme to be vim color or linux color.
any help?

In your home directory may be a file .vimrc or .gvimrc, depending on if you're using the console vim or X version. If you don't have one, make one. The relevant line is: syntax on

swangods
11-03-2002, 08:30 PM
okay so i'm going for three posts in a row in the same thread... but nobody else has mentioned jed. if you like emacs, jed is going to be pretty comfortable for you.

IvanHoe
11-03-2002, 11:58 PM
Iv'e tried many different editors over the last month (anjuta, jed, led, rhide, xwpe, scite... the list goes on), but I've stuck with gvim. After you get it configured the way you work it's very nice. Here's what I have in my ~/.vimrc file (the vim configuration file):
set nocompatible
source $VIMRUNTIME/mswin.vim
source $VIMRUNTIME/colors/darkblue.vim
set syntax=auto
syntax enable
set guifont=-misc-fixed-medium-r-normal-*-*-120-*-*-c-*-iso8859-1
set guioptions+=b
set smartindent
set autowrite
set mousem=popup
set mouse=a
set ruler
set wrap!
set ts=3
set sw=3

shadowrider
11-04-2002, 01:32 AM
In your home directory may be a file .vimrc or .gvimrc, depending on if you're using the console vim or X version. If you don't have one, make one. The relevant line is: syntax on

hi thx for the reply, but i don't have any of those.
i'm using text based vim.
i only have .viminfo which is not what you meant.
how do i make one?

IvanHoe
11-04-2002, 03:48 AM
Both vim and gvim use ~/.vimrc. To create .vimrc just start vim, enter the confiuration lines that you want and save the file as .vimrc in your home folder.

shadowrider
11-04-2002, 04:07 AM
so i would just create a file,
put :

syntax on

then save as .vimrc?
that's it?

shadowrider
11-04-2002, 04:12 AM
ok yeah...nevermind it works great!!
thx!! :D