Loading ...
Sorry, an error occurred while loading the content.

Re: Running part of a Vim file as an Awk program in the shell

Expand Messages
  • dacresni
    try help filter ... --~--~---------~--~----~------------~-------~--~----~ You received this message from the vim_mac maillist. For more information, visit
    Message 1 of 3 , Jul 31, 2009
    • 0 Attachment
      try help filter



      On Jul 31, 8:09 am, Birdie Edwards <jsmg...@...> wrote:
      > I have a single Vim file that contains 5 awk scripts.  Is there a way
      > of running one of those scripts from inside Vim?
      >
      > If one wants to run an entire file as an awk script from inside Vim,
      > one enters :! ./%
      >
      > If one wants to filter a portion of a file through a unix command such
      > as sort, one enters : first_line,last_line ! sort
      >
      > What I suppose I am looking for is something like:  :! ./
      > [first_line,last_line]
      >
      > I realize that I am probably barking up an imaginary tree.
      >
      > Thanks
      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_mac" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.