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

Re: executing maruku (external program) from within vim

Expand Messages
  • M
    Thank you! On Nov 1, 2:33 pm, Tony Mechelynck ... --~--~---------~--~----~------------~-------~--~----~ You received this
    Message 1 of 3 , Nov 1, 2007
    View Source
    • 0 Attachment
      Thank you!

      On Nov 1, 2:33 pm, Tony Mechelynck <antoine.mechely...@...>
      wrote:
      > M wrote:
      > > Hi. I apologize if this one could be obvious, but after some googling
      > > I'm still at odds.
      >
      > > I need to execute an external program (maruku) on the current buffer/
      > > file and read its output in a *new buffer*.
      >
      > > If I do this:
      >
      > > :r !maruku %
      >
      > > I get the maruku output, but it is appended below the cursor position
      > > of the file edited in the vim current buffer.
      >
      > > How can I have the output redirected to a new buffer (and possibly
      > > have it selected automatically)?
      >
      > > TIA
      >
      > > M
      >
      > (untested)
      >
      > " split to new empty window
      > :new
      > " execute ext. program on alternate (i.e. last used) file
      > :r !maruku #
      > " remove spurious empty first line
      > :1d
      >
      > Best regards,
      > Tony.
      > --
      > Electrocution, n.:
      > Burning at the stake with all the modern improvements.


      --~--~---------~--~----~------------~-------~--~----~
      You received this message from the "vim_use" maillist.
      For more information, visit http://www.vim.org/maillist.php
      -~----------~----~----~----~------~----~------~--~---
    Your message has been successfully submitted and would be delivered to recipients shortly.