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 21.0.100.2 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)];
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:
- Multiple buffers to allow multiple files to be opened, or even viewed at the same time.
- Copy/Cut/Paste Features (at least basic).
- Full featured Search/Replace for easy searching of text.
- Basic line/column numbering.
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 21.0.100.2 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.
- Excellent indentation model. Emacs actually reads syntax and indents accordingly. Vim has some functionallity as well but is a little less rigorous. Emacs has some trouble with indentation on constructs like ${"x"} = 1; because it thinks ${ is a special variable (you can fix it by $ {"x"} = 1;).
- Excellent syntax highlighting mode. (Vim is descent as well)
- Wonderful interface to CVS - ie commiting, updating, logging, checking status (vc- commands)
- Very powerful searching and replacing using string or regex (so does vim)
- Macro support (so does vim).
- Directory Edit mode (dired) allowing for file manipulation, complex regex rename of multiple files, etc.
- Editting files across FTP (ange-ftp).
- perldb (interface to the perl debugger).
- Bookmarks
- Rectange copy/cut/paste/insert
- Extremely customizable (vim is too)
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)];
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Favorite Text Editor?
by premchai21 (Curate) on May 22, 2001 at 20:56 UTC | |
by frag (Hermit) on May 22, 2001 at 23:48 UTC | |
| |
Re: Favorite Text Editor?
by arhuman (Vicar) on May 22, 2001 at 20:30 UTC | |
Re: Favorite Text Editor?
by sierrathedog04 (Hermit) on May 22, 2001 at 21:15 UTC | |
by bwana147 (Pilgrim) on May 23, 2001 at 17:20 UTC | |
by alfie (Pilgrim) on May 23, 2001 at 18:05 UTC | |
Re: Favorite Text Editor?
by azatoth (Curate) on May 22, 2001 at 20:16 UTC | |
by petdance (Parson) on May 23, 2001 at 02:51 UTC | |
by Rhandom (Curate) on May 22, 2001 at 20:25 UTC | |
Re: Favorite Text Editor?
by Beatnik (Parson) on May 22, 2001 at 20:15 UTC | |
by Rhandom (Curate) on May 22, 2001 at 20:22 UTC | |
by Beatnik (Parson) on May 22, 2001 at 20:26 UTC | |
by Rhandom (Curate) on May 22, 2001 at 20:36 UTC | |
Re: Favorite Text Editor?
by alfie (Pilgrim) on May 23, 2001 at 15:02 UTC | |
by stefan k (Curate) on May 23, 2001 at 15:57 UTC | |
Re: Favorite Text Editor?
by turnstep (Parson) on May 22, 2001 at 20:24 UTC | |
by Rhandom (Curate) on May 22, 2001 at 20:31 UTC | |
Re: Favorite Text Editor?
by lemming (Priest) on May 22, 2001 at 22:22 UTC | |
Re: Favorite Text Editor?
by stefan k (Curate) on May 23, 2001 at 13:54 UTC | |
Re: Favorite Text Editor?
by Coyote (Deacon) on May 22, 2001 at 22:36 UTC | |
Re: Favorite Text Editor?
by Animal (Sexton) on May 22, 2001 at 23:39 UTC | |
Re: Favorite Text Editor?
by brettc (Novice) on May 23, 2001 at 04:35 UTC | |
Re: Favorite Text Editor?
by shotgunefx (Parson) on May 23, 2001 at 03:58 UTC | |
Re: Favorite Text Editor?
by runrig (Abbot) on May 23, 2001 at 05:20 UTC | |
A reply falls below the community's threshold of quality. You may see it by logging in. |
Back to
Seekers of Perl Wisdom