views:

56

answers:

3

Hi Guys! I don't know if I am being clear with my question. I would like to ask for suggestions on the available IDEs that you I use in a command line interface (CLI) only linux distro. I am using debian. I want to program in C or C++ and I could not start because I dont have an ide or just a simple text editor. I don't have an idea how to save a file created using 'edit' since it is also my first time working in a linux enviroment. I hope you understand me.

Thanks a lot!

+1  A: 

EMACS EMACS EMACS EMACS EMACS EMACS EMACS EMACS EMACS

fuzzy lollipop
they demand 15 characters, and EMACS is only 5 :-)
fuzzy lollipop
You _could_ have fleshed out the answer with more useful content rather than just repeating yourself three times. Now you'll be forever associated in my mind with monkey-boy Ballmer with his "Developers, developers, developers" :-)
paxdiablo
EMACS is pretty self explanitory, I personally HATE EMACS, but for command line only it is pretty much the only "IDE" class editor. Personally I would develop on what I develop on now a Mac, and remote into linux for builds and deployments, using Git as a waypoint.
fuzzy lollipop
+4  A: 

I don't know of any text-mode IDEs (unless you count emacs as an IDE which isn't beyond the bounds of possibility).

For a text mode distro, I would simply use vim along with makefiles from the command line.

That will get you a large way towards simplifying the development process inasmuch as it will handle incremental compilation and linking.

paxdiablo
+1 for vim. If you absolutely must use emacs, there's always VIper mode, but vim > viper just as vim > vi.
Ben Voigt
I should warn you, however, that prolonged use of vim will make you crave regular expression support inside your programs. That could be bad if your goal is to learn C++.
Ben Voigt
Emacs would be fine. I'd choose vim since I know it better but, really, any half-decent editor will do the job.
paxdiablo
+1  A: 

Try this:

vi
i
#include <stdio.h>
int main(int argc, char **argv)
{
    printf("hello world\n");
}
<esc>
:w hello.c
:q
gcc -o hello hello.c
./hello

What could be clearer? ;-)

Richard Pennington
Agreed, vim has a rich ecosystem that can make a decent IDE if you tune it enough.
phasetwenty
I would go with `vim hello.c` so that I don't need to type `:w` and `:q`. Just `ZZ` (capitals) works to save and exit, `ZQ` to exit without saving.
Umang