Automate inputs to vim in a bash or perl script -


I have a script that calls in an external program in an external program. This external program opens a Vim terminal to add to my comments every time, when the loop is weighted. Is there any way I can automate this part? Any hints will be appreciated.

The question is whether you have control over Vim Inoculation external device ?!

Typically, such programs use an environment variable such as $ EDITOR to determine the user's favorite editor program. If this is the case (or you can also modify the external device), you can write a non-interactive editor replacement script which automatically applies to whatever change you want automatically. Here is a simple example with sed : # / bin / sh sed -i -e 's / foo / bar /' "$ @"

If Viam's voice is hard, then you may have to mess with this script name vim and $ PATH .

Comments

Popular posts from this blog

Pass DB Connection parameters to a Kettle a.k.a PDI table Input step dynamically from Excel -

multithreading - PhantomJS-Node in a for Loop -

c++ - MATLAB .m file to .mex file using Matlab Compiler -