Beefy Boxes and Bandwidth Generously Provided by pair Networks
Just another Perl shrine
 
PerlMonks  

Re: Piping data to vim

by SimonClinch (Deacon)
on Nov 19, 2010 at 08:58 UTC ( #872449=note: print w/replies, xml ) Need Help??


in reply to Piping data to vim

vim doesn't output the file to STDOUT, it outputs GUI instructions to talk to the presumed user. How to do it depends on whether you want to program or type the vim instructions. Either way you have to save the data to a file and then either shell out to vim (see the system function) or pipe the vim instructions terminated by "wq!\n" into vim (see the open function).

Either way the data then has to be read back from the file, not a pipe.

One world, one people

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://872449]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (2)
As of 2018-08-20 00:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Asked to put a square peg in a round hole, I would:









    Results (188 votes). Check out past polls.

    Notices?