Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 all is quiet...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2018-05-22 03:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?