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

Re: Question about the :r ex command.

Expand Messages
  • Hari Krishna Dara
    ... Try using some perl/python thread to spawn a process and read and append the output to a buffer continuously. However, I don t know about thread safetly
    Message 1 of 3 , Mar 26, 2004
    • 0 Attachment
      On Sat, 27 Mar 2004 at 2:41am, Y. Yang wrote:

      > Hi, all.
      >
      > I'm using gVim 6.2 (win2K). By any means, it would
      > be much more favorable to keep located in the Vim
      > environment, which is to say, I always wield the
      > ex command
      > :r!{cmd}
      >
      > to read the output of a shell command to a
      > temporary buffer for further operations.
      >
      > The question is how to read a dynamic one.( it might
      > not be a very accurate word, which I mean the
      > {cmd} itself is producing the output )
      > e.g.
      > :r! ping localhost " it works well
      > :r! ping -t localhost " bogged
      > ping -t | vim - " also doesn't work
      >
      > Would there some means to tune the read command to
      > achieve this ?
      >
      > Thanks!

      Try using some perl/python thread to spawn a process and read and append
      the output to a buffer continuously. However, I don't know about thread
      safetly issues.

      Hari

      __________________________________
      Do you Yahoo!?
      Yahoo! Finance Tax Center - File online. File on time.
      http://taxes.yahoo.com/filing.html
    Your message has been successfully submitted and would be delivered to recipients shortly.