Automated typing in the Vi editor.
ezvi is a python package that allows typing automation for the
ezvi is distributed as a Pip package. To install the program, simply run
pip install ezvi
The package can be used via the
ezvi functions can also be imported and used in a Python program.
There are two different ways of using
ezvi via the command line.
text can be used to type a pre-written file. It takes one argument (
infile and one option (
infileis the path towards the pre-written file.
--writefiletells the program to save the file again after typing it.
--writefiletakes one argument that corresponds to the path where the typed file will be written.
ezvi text -w ./foo.txt example/message.txt
This takes the
message.txt example from the example directory and types it again. The Vi buffer is then written to
yaml should be used to take a configuration as instructions to type a new file. The
yaml command only takes one argument (
config). Everything else should be specified in the config file.
configis the path towards the configuration file.
ezvi yaml example/config.yaml
This command would take the
config.yaml file from the example directory and use it to type a new file.
Writing a config file
- write_line: "Hello!"
- new_line: 2
- write_chars: "-- Good Bot."
- write_file: "message.txt"
- must precede every action.
For more in depth documentation, please refer to the Read the Docs
This package is in alpha. Not much testing has been done and many things could still change. To see the latest commit, go check the latest branch.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.