|Problems? Is your data what you think it is?|
Favorite Text Editor?by Rhandom (Curate)
|on May 22, 2001 at 20:12 UTC||Need Help??|
Rhandom has asked for the
wisdom of the Perl Monks concerning the following question:
I am asking an age old question. I did a super search and found some information in Development Speed and Productivity. But mostly I have found nothing. My question is, "What text editor do you use for coding perl, and why do you use it to code perl?"
Let me lay out some ground rules here. I am not looking for an editor holy war here. I am not interested in whether one or the other is better. I am looking for features that editors have that make them useful for editing perl. I am not even looking for statements like "vi is better because it is always installed on the box." On the emacs side, I am not interested whether Xemacs is better than Emacs or whether perl-mode is better than cperl-mode. I hope that any posts that attempt to extol the virtues of one editor OVER another are "--"ed.
A little background...
We have 15 to 20 programmers, about 5 to 10 sysadmins, and half a dozen html developers. The html guys use Windows based EditPad and WinCVS -- for one reason or another, they have found an easy learning curve with those tools. The sysadmins generally use vi (we are using Red Hat so "vi" is actually spelled "vim") and they use command line cvs -- in their case, vi is always on the box, and "who would be caught using an interface to cvs?" The programmers however are split. Sixty percent use vim and the rest use emacs (although we have had the occasional Nedit, CRiSP, or Microsoft IDE people). I am a firm believer that you really need an extended editor that has minimum features of:
For obvious reasons, this rules out editors like notepad and pico. I'm sure there are some that are some developers who are capable of turning out lots of good work using pico and notepad, but experience (managing and viewing the work habits of 20 to 30 developers) has shown that people who use an extended editor such as emacs or vim and know their editor well, tend to get more done.
As for myself, I do most of my editing in a terminal window. I am currently using GNU Emacs 126.96.36.199 running in perl-mode with global-font-lock-mode on (which means I get color syntax highlighting in emacs through a telnet window -- yes, vim has had this for years). I know vi and vim at least fairly well, but have found some rather desirable features in using emacs.
I love emacs. But I get the impression that many, if not a majority, of people use vim. Larry uses vi from what I hear. So, what do you use to code perl and why?
my @a=qw(random brilliant braindead); print $a[rand(@a)];