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

Re: [Was :wq vs ZZ] "doing something" for each line

Expand Messages
  • Dolazy
    ... -- View this message in context: http://www.nabble.com/%22doing-something%22-for-each-line-tf3307892.html#a9203037 Sent from the Vim - General mailing list
    Message 1 of 3 , Feb 28, 2007
      Tim Chase-2 wrote:
      >
      > I'm not sure how to tie what you ask (executing a command or
      > series of commands on each line in a buffer) with what you
      > provided (a long list of function implementations). However, the
      > way I usually execute things on every line is to
      >
      > :g/^/cmd1 | cmd2 | cmd3 | cmd4
      >
      >

      Thanks! I got it working with this:

      :function DiffAll()
      : tabo
      : call ShowOpened()
      : g/^/tab split | call DiffFileUnderCursor() | tabmove | tabfirst
      :endfunction
      --
      View this message in context: http://www.nabble.com/%22doing-something%22-for-each-line-tf3307892.html#a9203037
      Sent from the Vim - General mailing list archive at Nabble.com.
    Your message has been successfully submitted and would be delivered to recipients shortly.