Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

comment on

( [id://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

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



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others scrutinizing the Monastery: (5)
As of 2024-04-19 23:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found