Click to See Complete Forum and Search --> : Environment?


Larson
05-14-1999, 06:40 PM
What environment(s) are you guys using when you are programming in linux? Just wondering..

larson

X_console
05-14-1999, 07:11 PM
What do you mean? I have two definitions of environement and I have them confused. Hehehe... the environment around me is cluttered. I have one lamp, two computers in front of me, some books, CDs, disks, my pager, etc... The environment program I write my programs in is Vi. I think the second one was what you were looking for... right?

------------------
"He is more machine than man now."
-- Obi Wan Kenobi
Home: http://members.tripod.com/LunarsBlood/laptop.html
PGP : http://members.tripod.com/LunarsBlood/pubkey.html

Larson
05-14-1999, 07:21 PM
ehm... yeah.. I think you're right http://www.linuxnewbie.org/ubb/smile.gif

Does vi suport syntax higlighting? You can't program without that really..

Speaking about the other type of coding environment I like to code in the dark with just one lamp next to my computer turned on..
http://www.linuxnewbie.org/ubb/smile.gif

larson

X_console
05-14-1999, 07:40 PM
Vim does support syntax highlighting. It's in their :help page. I've never had much trouble coding without syntax highlighting, so I never use it. KDE has an Advanced Editor though that supports syntax highlighting in C, C++, Java, HTML, Bash, Modula 2, Ada, Python, and Perl.

------------------
"He is more machine than man now."
-- Obi Wan Kenobi
Home: http://members.tripod.com/LunarsBlood/laptop.html
PGP : http://members.tripod.com/LunarsBlood/pubkey.html

extrasolar
05-14-1999, 09:00 PM
Ive looked into syntax highlighting in vim. It seems you have to define each key word and operator one at a time. Seems like more trouble than it is worth.

X_console
05-14-1999, 09:19 PM
It is which is, why I don't bother with it. http://www.linuxnewbie.org/ubb/smile.gif I think there's a way to get it all pre-prepared though.

------------------
"He is more machine than man now."
-- Obi Wan Kenobi
Home: http://members.tripod.com/LunarsBlood/laptop.html
PGP : http://members.tripod.com/LunarsBlood/pubkey.html

Andy
05-14-1999, 10:02 PM
Yes, vim has syntax defs built in for most types of source. Check in /usr/share/vim/macros. try

:syntax on

In my opinion, it's ugly. As far as editors go, vim is the best though (also in my opinion). You can squeeze a lot more speed out of it using emacs keys, though..... Kind of the best of both worlds.

If you don't mind X-Windows (I do this at school, but not at work, as we use straight termonals at work), you should try Xemacs in viper (vi emulation) mode. You get good syntax highlighting, vi and emacs keys, plus you get to use the mouse to boot. When I sit down at a slowlaris box at school, I use that setup all the time, if I'm going to be coding for a long haul.

--Andy

X_console
05-15-1999, 01:56 AM
I tried the :syntax on option and thought my source code turned to a fruit cake. http://www.linuxnewbie.org/ubb/smile.gif It looks really funky though. I wasn't aware that Xemacs had a Vi emulation mode. I might have installed it just to use Vi in it.

------------------
"He is more machine than man now."
-- Obi Wan Kenobi
Home: http://members.tripod.com/LunarsBlood/laptop.html
PGP : http://members.tripod.com/LunarsBlood/pubkey.html

dotzourb
05-15-1999, 05:13 AM
Don't forget about emacs' auto-tabbing for source formats, as well as auto- {, (, and [ matching. It's priceless....

Larson
05-16-1999, 05:05 AM
That sounds interesting.. how do you enable it?

larson

Ben Briggs
05-01-2001, 01:09 AM
Originally posted by Larson:
<STRONG>That sounds interesting.. how do you enable it?

larson</STRONG>
I do realize this is a really old topic but... it's automatic :) (i.e. It is set that way at installation). But you can also use autoformatting in vim... ':set cindent', but that only works with C-based languages like C, C++, Java, Perl, PHP, etc.

All three editors have many customizations,
look at the documentation for each to learn how to do some spiffy things :).

Big D
05-01-2001, 10:55 AM
If I have access to xwindows I like Nedit.
You can get it at www.nedit.org (http://www.nedit.org) otherwise Vim is good