Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor

by liverpole (Monsignor)
on Nov 01, 2006 at 01:02 UTC ( #581604=note: print w/replies, xml ) Need Help??


in reply to (OT) Wanted: Compact Perl Syntax High-lighting Editor

This is almost turning into a poll :-)

My $0.02 would also be to go with vim, and its "graphical" version gvim too.  It's an amazing tool, which has come a long, long way from its vi roots.

Ironically, I started out as a fan of emacs (the other great editor, originally written by Richard Stallman).  At my first computer job, and on my first Unix system (more than 20 years ago), I was enamored of emacs, and found it very useful to write macros for work.

But at my second company, emacs wasn't available.  The best choice by far was vi; it was the most flexible and most reliable available on the Data General computer at that time.

Ever since learning vi I've been hooked on it, and the transition to vim/gvim was very simple when it became available.

You should be aware that it may seem a little tricky to use at first.  You have to get used to being in "movement mode" versus "edit mode" (in emacs you're in "edit" mode all the time, even when moving around).  But once you've used it enough that your fingers have "memorized" it, it can really become natural and smooth to use.


s''(q.S:$/9=(T1';s;(..)(..);$..=substr+crypt($1,$2),2,3;eg;print$..$/
  • Comment on Re: (OT) Wanted: Compact Perl Syntax High-lighting Editor

Replies are listed 'Best First'.
Re^2: (OT) Wanted: Compact Perl Syntax High-lighting Editor
by chargrill (Parson) on Nov 01, 2006 at 03:52 UTC

    I'll go along with this, too, with a similar story. I very briefly used emacs, but couldn't remember the (seemingly) 4 step key commands - control-w control-x, or whatever. I forget, obviously. Thankfully ;)

    I did a long tour of plain vanilla vi (my early Linux/FreeBSD days, then a long contract as a Solaris admin), thinking I was Mr. Vi - woo, look at me! setting marks, yanking to named buffers, and my perl background helped a lot with doing 'complicated' find/replace regexen on the vi command line. Never got exposed to vim or its advanced features.

    Until a few weeks ago. Boy, have I been missing out. Now I'm browsing the file explorer, stepping through my buffer history, opening vertical and horizontal splits. And I've setup my first kep mappings and macros, naturally containing perl-isms. Including the first one of which I was especially proud, adding a POD entry for the word under my cursor, a few lines above my current line (for ease in creating POD for subroutines).

    I got my start down the advanced vim path partly by shoulder surfing an apparent vim wizard at the office, but also right here at the monastery with the help of this single solitary link: .vimrc for perl programmers. That node (and the many helpful replies therein) merely brush the surface. There are other tips (there's a cool tip for a key mapping that filters your source through perltidy contributed by cees), links to additional perlmonks discussions regarding vi/vim, links to offsite tutorials (one of which was written up by TVSET), and a lot of other really good reading material.

    You're right, getting around in vi/vim can be a little tricky at first - I know it was a little tough to remember way back when. But these days, I get into the equivalent of notepad/textedit and inadvertantly leave little clues around the file that indeed, I am a vim user.

    <ESC>:wq!


    --chargrill
    s**lil*; $*=join'',sort split q**; s;.*;grr; &&s+(.(.)).+$2$1+; $; = qq-$_-;s,.*,ahc,;$,.=chop for split q,,,reverse;print for($,,$;,$*,$/)

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://581604]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (3)
As of 2021-05-14 02:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Perl 7 will be out ...





    Results (147 votes). Check out past polls.

    Notices?