Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I use vi, vim and Xemacs mostly. In windows I use Notepad just because it's there. I don't use windows for anything bar playing the odd game so I don't have to do any heavy work in it. The posts about Notepad+ caught my eye though, I'll check it out.

With regards to editors under unix, I have long tried to stay away from the religious aspect of it although I think the flame fests can be funny they are getting a little tiring. Not that anything I think is going to stop history repeating itself. Many of the new college graduates I've worked with arrive into the company not really caring what they use but within weeks they are either raving vi nuts or raving emacs nuts. It's a cultural marker I suppose.

I use vi or vim for system administration type work and for writing small bits of noddy code like the average perl script you see posted around here. For serious, project work, tracking down bugs in large collections of software or anything else of that nature I use emacs. I learn something new about emacs every now and again, it doesn't give up it's secrets too easily. Many would hate it for that. I love it for that. Why ? Well here are just a few of the reasons.

  1. Elisp. Imagine having an editor where you could write little pieces of Perl, name these functions and run them at will against the text in your editor. Thats what Elisp gives you in emacs.
  2. VM. Exactly the same environment for my mailer as for my editor. That's because my editor is also my mailer. Many have moved on to Mutt. Off with them I say. There's something soothing about being able to use the same keystrokes and functions in multiple applications. This extends I suppose to all applications that use the readline library including bash itself. I don't have access to a news-feed except for Deja but if I did I would use emacs for that too.
  3. M-q fill-paragraph. I mentioned this one in a previous post. There's nothing magical about it but it makes my life easier. Fscks up mightily on troff and other formats where there are no blank lines between paragraphs but everything has got its limitations, right ?.
  4. re-search-forward, re-search-backward. I don't have to tell Perl coders how useful being able to search for regexes is. The elisp regex flavour is ugly compared to Perls but it is basic and once you get over the leaning toothpick syndrome it's not too bad.
  5. BBDB. The Big Brother Database. Sits at the bottom of your VM frame in a separate window and it scans emails as they come in talking out names, alternate email addresses. Very useful, you soon build up a database of names, email addresses, phone numbers and addresses and half the time you don't even see it happening.
  6. Consistency. C-f goes forward a character, M-f goes forward a word. In the various programming modes they will go forward something equivalent, usually an expression instead of a word.

In reply to (Dermot) RE: RE: Editor tricks. by Dermot
in thread Editor tricks. by Macphisto

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?

    What's my password?
    Create A New User
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others chanting in the Monastery: (6)
    As of 2020-06-04 21:35 GMT
    Find Nodes?
      Voting Booth?
      Do you really want to know if there is extraterrestrial life?

      Results (35 votes). Check out past polls.