Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • You don't even need the eval. I have two mappings for doing something with the current file:


          map ü :!perl -w %
          map ö :!perl -wc %


    So 'ö' will syntax-check the current file (I hope the German umlauts will be visible to non-Germans as well). The disadvantage of that, I just realize, is that mine has the interpreter to use hardwired in and wont respect the she-bang line.

    But indeed, vim is pretty amazing even though I am myself only scratching on
    •     :!./%
      is even more simple. That's what I use ;-) although
          :new|r!./#
      is also useful. (Quote the pipe with \ in maps.)

      My favorite vim map is amazingly simple :
          vmap * y:let@/=@"<CR>n
      Select a word or part of a word in visual mode, enter '*', and voilà, you're searching for this word.