Slash Boxes
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.
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 the surface when using it. I think Rafael knows some really nifty tricks and has some of them on his webside.
    •     :!./%
      is even more simple. That's what I use ;-) although
      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.
      • :!./%
        Windows doesn't seem to like that, but specifying 'perl %' as the command does work. Either way, I really need to learn some vim; I'm still using it like it's plain vi.