a Python tool that executes Vim commands based on natural language input, which are applied on target file.
- OpenAI API
- OpenAI python package
Go here and follow the instructions.
pip install openai
git clone https://github.com/pa1ar/vimai.git
Disclaimer: This is largely just a demo, which is powered by AI, so probably don't use it for anything important.
when you run the script for the first time, it will ask for API key, which will be stored in constants file locally. not ideal, but i wanted to make it simple.
- run the script with
python path/to/vimai
- provide instructions
- (your working directory is the directory where the script will look for files)
consider checking Apple Shortcuts which i am using myself, maybe you will too. :3